Attributes Sample
This sample shows how to create custom attribute classes, use them in code, and query them through reflection.
This sample contains the source code for the Attributes Tutorial.
Building and Running the Sample Within Visual Studio
To build and run the Attributes sample
- Open the solution (Attributes.sln).
- From the Debug menu, click Start Without Debugging.
Building and Running the Sample from the Command Line
To build and run the Attributes sample
- Type the following at the command prompt:
csc AttributesTutorial.cs AttributesTutorial