Export (0) Print
Expand All

Indexed Properties Sample

This sample shows how C# classes can declare indexed properties to represent an array-like collection of different kinds of things.

This sample contains the source code for the Indexed Properties Tutorial.

Building and Running the Sample Within Visual Studio

To build and run the Indexed Properties sample

  1. Open the solution (IndexedProperties.sln).
  2. From the Debug menu, click Start Without Debugging.

Building and Running the Sample from the Command Line

To build and run the Indexed Properties sample

  • Type the following at the command prompt:
    csc indexedproperty.cs
    indexedproperty
    

See Also

Indexed Properties Tutorial | Tutorial Samples

Show:
© 2015 Microsoft