.NET Framework Samples
The .NET Framework documentation includes code examples that you can copy directly from topics and paste into your own projects. In addition, downloads for lengthier, more complex examples and sample applications are provided in the MSDN Samples Gallery. Here are links to samples that are currently available for the .NET Framework:
CLR code samples in the MSDN Samples Gallery -- Samples that demonstrate features such as deployment, formatting, and encoding.
Network Programming Samples -- Samples that demonstrate features of the networking technologies, apart from ASP.NET, that are available in the common language runtime.
WPF documentation samples in the MSDN Code Gallery - Samples that demonstrate Windows Presentation Foundation (WPF) features. Also see the WPF code samples in the MSDN Samples Gallery.