|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Visual C# Samples
This section contains abstracts that describe the samples that are included with Visual Studio. You can access the samples on the Visual Studio main menu by clicking Help and then clicking Samples. The samples themselves are located locally at drive:\Program FIles\Microsoft Visual Studio 9.0\Samples. In addition, the Windows Software Development Kit (SDK) includes technology samples, application samples, and QuickStart tutorials that demonstrate .NET Framework features and Visual C# code.
The QuickStart Tutorials are the fastest way to understand what the .NET Framework technology offers leading-edge developers. The QuickStart tutorials include a series of samples and supporting documentation designed to quickly acquaint you with the syntax, architecture, and power of Visual Studio and the .NET Framework. The QuickStart tutorials include samples on ASP.NET, Windows Forms applications, and many how-to applications that explain the most compelling features of the .NET Framework technology. For more information, see Samples and QuickStarts.
Demonstrates the use of unnamed delegates to reduce application complexity.
Shows how to use arrays.
Shows how to make non-generic collection classes that can be used with the foreach statement.
Shows how to make generic collection classes that can be used with the foreach statement.
Demonstrates simple command-line processing and array indexing.
Demonstrates conditional methods, which provide a powerful mechanism by which calls to methods can be included or omitted depending on whether a symbol is defined.
Shows how delegates are declared, mapped, and combined.
Shows how to use events in C#.
Demonstrates how to explicitly implement interface members.
A Hello World application.
Shows how to use array notation to access an object.
Shows how to implement a class that uses indexed properties. Indexed properties enable you to use a class that represents an array-like collection of several different kinds of things.
Shows how properties are declared and used; also demonstrates abstract properties.
Shows how to use structs in C#.
Shows how user-defined classes can overload operators.
Shows how to define conversions to and from user-defined types.
Demonstrates versioning in C# by using the override and new keywords.
Demonstrates the yield keyword to filter items in a collection.
Shows how to create custom attribute classes, use them in code, and query them through reflection.
Shows how to use C# to interoperate with COM objects.
Shows how to a use a C# server together with a C++ COM client.
Shows how to use compiler options to create a DLL from multiple source files; also, how to use the library in other programs.
Demonstrates value types that can be set to null.
Demonstrates how to use a Microsoft Access database from C#. It shows how you can create a dataset and add tables to it from a database.
Demonstrates how classes and structures can be defined in multiple C# source-code files.
Shows how to call exported DLL functions from C#.
Discusses .NET Framework security and shows two ways to modify security permissions in C#: using permission classes and permission attributes.
Demonstrates various thread activities such as creating and executing a thread, synchronizing threads, interacting between threads, and using a thread pool.
Shows how to use pointers.
Shows how to document code by using XML.