Share via

Visual C# Samples

Download these C# samples to learn more about building Windows-based applications, Web applications, and Web services.

Class Libraries
Check out various classes, from both inside and outside of Microsoft, that you may find useful in your application development.
Visual C# Code Snippets
Download the new Visual C# code snippets, which are reusable, task-oriented blocks of code that can help you with programming tasks ranging from sending an e-mail, to reading a value from the Windows registry, to creating a connection to a SQL Server Express database.
C# Tutorials
The C# tutorials provide an overview of the basics of the language and identify important language features. Each tutorial includes one or more sample programs. The tutorials discuss the sample code plus provide additional background information. They also link to the corresponding sample abstract topics, where you can download and run the sample programs.
Visual C# Samples
Find sample code in Visual C# that demonstrates common simple programming tasks. If you're new to C#, these samples give you great guidance for getting your feet wet in C# programming.
Visual C# Code Example Topics
Code example topics in the Visual C# .NET documentation are designed to present concise, real-world examples of common tasks. These topics are organized by feature area.
23 C# Code Samples
View this set of code samples to understand how to work with the most essential components of the Microsoft .NET Framework and accomplish the most common coding tasks in C#.
101 Visual Basic and C# Code Samples
Download this master set of Visual Basic and Visual C# code samples. These samples demonstrate various aspects of the language, including syntax, Web services, the .NET Framework, and many others.
Visual Studio Samples
Refer to the guide and links to sample applications created for the .NET Platform. The code in each sample illustrates the syntax and structure of the underlying development language.