Export (0) Print
Expand All

Versioning Sample

This sample demonstrates versioning in C# through the use of the override and new keywords. Versioning maintains compatibility between base and derived classes as they evolve.

This sample contains the source code for the Versioning Tutorial.

Building and Running the Sample Within Visual Studio

To build and run the Versioning sample

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

Building and Running the Sample from the Command Line

To build and run the Versioning sample

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

See Also

Versioning Tutorial | Tutorial Samples

Show:
© 2014 Microsoft