March 2003
Intermediate to advanced
896 pages
32h 35m
English
DefaultPropertyAttribute
Decorate a class with this attribute to indicate which of the properties should be treated as the default.
You can retrieve the Name of the default property
from the attribute.
public sealed class DefaultPropertyAttribute : Attribute { // Public Constructors public DefaultPropertyAttribute(string name); // Public Static Fields public static readonly DefaultPropertyAttribute Default; // =System.ComponentModel.DefaultPropertyAttribute // Public Instance Properties public string Name{get; } // Public Instance Methods public override bool Equals(object obj); // overrides Attribute public override int GetHashCode(); // overrides Attribute }
System.Object
→ System.Attribute → DefaultPropertyAttribute
Class
Read now
Unlock full access