views:

798

answers:

5

What is some truly beautiful source code that I can browse, maybe on Codeplex.com?

I am in the process of getting as good at C# as I can, and I would love to know what code I can look at and know I am looking at some beautiful code worthy of emulating.


Exact Duplicate: Open source C# projects that have very high code quality to learn from

+1  A: 

I think the code of SharpDevelop can't be that bad. There are almost all kinds of usage that C# can offer anywhere in that code. Another argument is the implementation of the plugin/addon system.


Edit: The Addon System is called "SODA" and there's a documentation here.

Peter
+1 for a concise answer, I'll be checking it out
Alex Baranosky
A: 

You shouldn't be looking for something specific to emulate, but rather, trying to gather a set of guidelines to follow so that your code remains consistent, readable, well documented and understandable. That way, if anyone has to maintain it, or you have to return to it later, you're able to get back in the saddle as painlessly as possible.

Here are the C# Guidelines that Microsoft uses. Let this be your starting point.

Soviut
A: 

I haven't looked at it personally, but have heard Paint.Net is an excellent example of C# code.

Update: it turns out the source code is no longer available.

dmo
I went to their site and they say the source code is not available.
Alex Baranosky
no longer open source
John T
And They say that it is not open source
mcaaltuntas
See also http://stackoverflow.com/questions/449883/where-to-find-paint-net-multithreading-white-paper
peSHIr
A: 

Check CSharp-Source.NET, there's a good list of open source projects developed in C#.

CMS
A: 

Have a look at the website of mono , the open source project implementing both C# and the .NET framework in open source. This is probably the center of open source C# development.

Roalt