Implementing Custom Attributes in .NET

Extend .NET using attributes. You can create your own attributes in .NET, and Paul Kimmel shows you how in this installment of Visual Basic Today from CodeGuru.

provided by: 
Originally published at Internet.com


Visual Studio .Net creates assemblies. An assembly is a combination of metadata and a portable executable. Unlike applications built in earlier versions of Visual Studio, Visual Studio .Net combines extra information necessary to describe the executable. This extra information is the metadata, and is the technical feature that supports xcopy deployment of Visual Basic .Net assemblies. It is the Attribute class that allows you to add metadata to your assemblies.

The Attribute class is defined in the System namespace. Because Attribute is a class, you can implement new attributes by subclassing the System.Attribute class. Implementing new attribute classes is a way for you to effectively extend Visual Studio .Net without needing or having access to the Visual Studio .Net or Visual Basic .Net source code. This is an important concept, so I will repeat it. Attributes allows you to add metadata to your assemblies, and implementing custom attributes allows you to extended .Net. The best part is that everything you know about object-oriented programming in Visual Basic .Net can be leveraged to create new attributes. If you know how to use inheritance, define classes, and use attributes then you can create custom attributes...

Read article at Internet.com site
Regional Articles
- Implementing Custom Attributes in .NET Alabama
- Implementing Custom Attributes in .NET Alaska
- Implementing Custom Attributes in .NET Arizona
- Implementing Custom Attributes in .NET Arkansas
- Implementing Custom Attributes in .NET California
- Implementing Custom Attributes in .NET Colorado
- Implementing Custom Attributes in .NET Connecticut
- Implementing Custom Attributes in .NET DC
- Implementing Custom Attributes in .NET Delaware
- Implementing Custom Attributes in .NET Florida
- Implementing Custom Attributes in .NET Georgia
- Implementing Custom Attributes in .NET Hawaii
- Implementing Custom Attributes in .NET Idaho
- Implementing Custom Attributes in .NET Illinois
- Implementing Custom Attributes in .NET Indiana
- Implementing Custom Attributes in .NET Iowa
- Implementing Custom Attributes in .NET Kansas
- Implementing Custom Attributes in .NET Kentucky
- Implementing Custom Attributes in .NET Louisiana
- Implementing Custom Attributes in .NET Maine
- Implementing Custom Attributes in .NET Maryland
- Implementing Custom Attributes in .NET Massachusetts
- Implementing Custom Attributes in .NET Michigan
- Implementing Custom Attributes in .NET Minnesota
- Implementing Custom Attributes in .NET Mississippi
- Implementing Custom Attributes in .NET Missouri
- Implementing Custom Attributes in .NET Montana
- Implementing Custom Attributes in .NET Nebraska
- Implementing Custom Attributes in .NET Nevada
- Implementing Custom Attributes in .NET New Hampshire
- Implementing Custom Attributes in .NET New Jersey
- Implementing Custom Attributes in .NET New Mexico
- Implementing Custom Attributes in .NET New York
- Implementing Custom Attributes in .NET North Carolina
- Implementing Custom Attributes in .NET North Dakota
- Implementing Custom Attributes in .NET Ohio
- Implementing Custom Attributes in .NET Oklahoma
- Implementing Custom Attributes in .NET Oregon
- Implementing Custom Attributes in .NET Pennsylvania
- Implementing Custom Attributes in .NET Rhode Island
- Implementing Custom Attributes in .NET South Carolina
- Implementing Custom Attributes in .NET South Dakota
- Implementing Custom Attributes in .NET Tennessee
- Implementing Custom Attributes in .NET Texas
- Implementing Custom Attributes in .NET Utah
- Implementing Custom Attributes in .NET Vermont
- Implementing Custom Attributes in .NET Virginia
- Implementing Custom Attributes in .NET Washington
- Implementing Custom Attributes in .NET West Virginia
- Implementing Custom Attributes in .NET Wisconsin
- Implementing Custom Attributes in .NET Wyoming

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML