Basic Attribute Configuration

This example provides an introduction to the Attribute utility, showing how you can use it to add attribute support to your own custom classes.

It is geared towards users who want to create their own classes from scratch and add Attribute support. In most cases you should consider extending the Base class when you need managed attribute support, instead of augmenting Attribute directly, especially if you expect your class to be extended. Base does the work described in this example for you, in addition to making it easier for users to extend you class.

Construct o1, with default attribute values
Update the first instance, using set
Create the second instance, passing initial values to the constructor