I want to decorate a VB.NET class with meta data to describe additional information associated with the properties of the class. Also I need this information to be visible through reflelction. Any suggestions? Is this even possible for me to accomplish? Thanks.
+3
A:
Use attibutes on the method or classes. They are accessible through reflection.
http://msdn.microsoft.com/en-us/library/aa287992%28VS.71%29.aspx
mcintyre321
2009-08-17 14:26:15
+4
A:
You can annotate most of C#/VB entities with attributes. You can develop your own (by deriving from System.Attribute) or reuse existing
Dewfy
2009-08-17 14:26:52
Check out http://stackoverflow.com/questions/20346/c-what-are-attributes for more information.
Patrik
2009-08-17 14:40:44
+1
A:
Attributes are the accepted way to add metadata to a class, methods, properties, etc. You can use one of the many existing attributes or easily create your own.
Scott Dorman
2009-08-17 14:30:28