Export (0) Print
Expand All

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

  1. Open the solution (Attributes.sln).
  2. 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
    

See Also

Attributes Tutorial | Tutorial Samples

Show:
© 2015 Microsoft