Home arrow ASP.NET arrow Demonstrating Attributes and Reflection in .NET

Demonstrating Attributes and Reflection in .NET

In this article, Todd Clemetson demonstrates how the combination of attributes and reflection can result in some flexible and powerful software...

Author Info:
By: Wrox Team
Rating: 5 stars5 stars5 stars5 stars5 stars / 78
January 14, 2003
  1. · Demonstrating Attributes and Reflection in .NET
  2. · What are Attributes?
  3. · Generic Database Manager
  4. · Attributes Applied
  5. · Generating SQL using .NET Reflection
  6. · Putting it all together
  7. · Bug Tracking Attribute
  8. · Conclusion

print this article

Demonstrating Attributes and Reflection in .NET
(Page 1 of 8 )

Editor's Note: This article's code has been updated to work with the final release of the .Net framework.

With the inclusion of Reflection and Attributes within the .NET framework, Microsoft has taken software development to a new level. In this article, we will look at how the combination of these two technologies can result in some generic and powerful software.

After an introduction to .NET Attributes, we look at two examples of attributes in action that, with some enhancement, can be utilized in your .NET programming project today: a generic database manager for managing objects, and a custom Bug Tracking attribute along with a sample viewer application.

Before we can explore the construction of both the generic database and bug tracking attributes, we need an understanding of what attributes are and how they are used.

For supplemental information to this overview, please see the MSDN help packaged in .NET.

To work with the code in this article, you will need the following tools:
  • .NET Framework Beta 2
  • SQL Server 7.0 or 2000
  • Visual Studio.NET Beta 2 (or a text editor)

  • blog comments powered by Disqus

- How Caching Means More Ca-ching, Part 2
- How Caching Means More Ca-ching, Part 1
- Reading a Delimited File Using ASP.Net and V...
- What is .Net and Where is ASP.NET?
- An Object Driven Interface with .Net
- Create Your Own Guestbook In ASP.NET
- HTTP File Download Without User Interaction ...
- Dynamically Using Methods in ASP.NET
- Changing the Page Size Interactively in a Da...
- XML Serialization in ASP.NET
- Using Objects in ASP.NET: Part 1/2
- IE Web Controls in VB.NET
- Class Frameworks in VB .NET
- Cryptographic Objects in C#: Part 1
- Sample Chapter: Pure ASP.Net

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials