Search:
Namespaces
Discussions
.NET v1.1
Feedback
Attributes in .NET
Details
Related Types
Site:
C#Today
Original URL:
http://www.csharptoday.com/content/articles/20010710.asp
Summary:
Developers have traditionally been adopting a functional approach to programming. Everything is a function or method, and functionality is explicitly asked for. While this works for building a monolith style application, component based programming doesnt exactly fit into this methodology. Loosely coupled systems are now being advocated over closely coupled systems. Furthermore, declarative and attribute based programming is gaining popularity where attributes can be declared on a class that annotate the behavior of the code and communicate this to the runtime and other objects. The .NET framework brings mainstream attribute based programming to the Windows environment by allowing the use of predefined and custom attributes on classes, and most code elements. In this article, we will look into the support that the .NET framework provides for attribute based programming and we will demonstrate the use of custom attributes by building a sample application that can trace all calls to your component by merely declaring a single attribute.
System.Attribute
System.AttributeTargets
System.AttributeUsageAttribute
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com