June 2003
Intermediate to advanced
800 pages
34h 20m
English
You want to use custom attributes to decorate members and classes.
Create a class that derives from System.Attribute, apply it to a class or a member, and use the Type.GetCustomAttributes method to retrieve it during reflection.
Attributes are a cornerstone of .NET extensibility. Using attributes, you can specify additional information about a type or a member that doesn’t relate directly to the code. For example, .NET uses attributes to tell the debugger how to treat code, to tell Microsoft Visual Studio .NET how to display components and controls in the Properties windows, to implement COM+ services such as object pooling, and to support Web Services and Web Service–related ...
Read now
Unlock full access