
Sample Chapter 8 from VB.NET Language in a Nutshell, 2nd Edition Attributes are declarative tags that can be used to annotate types or class members, thereby modifying their meaning or customizing their behavior. This descriptive information provided by the attribute is stored as metadata in a .NET assembly and can be extracted either at design time or at runtime using reflection.To see how attributes might be used, consider the < WebMethod > attribute, which might appear in code as follows:
|