Indexed Properties Sample
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. ArchiveDisclaimer

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:
© 2016 Microsoft