CODECLASSIC.COM  
Home arrow Programming arrow C-Sharp Articles-III arrow Attributes and Reflection
Friday, 04 July 2008
 
 
Attributes and Reflection PDF Print E-mail
Monday, 12 March 2007
Article Index
Attributes and Reflection
Page 2
Page 3
Page 4
Page 5
Page 6
Page 7
Page 8
Page 9
Page 10
Page 11
Page 12
Page 13
Page 14
Page 15
Page 16
Page 17
Page 18

Attributes and Reflection

Throughout this book, I have emphasized that a .NET application contains code, data, and metadata. Metadata is information about the data--that is, information about the types, code, assembly, and so forth--stored along with your program. This chapter explores how some
of that metadata is created and used.

Attributes are a mechanism for adding metadata, such as compiler instructions and other
data about your data, methods, and classes, to the program itself. Attributes are inserted
into the metadata and are visible through ILDasm and other metadata-reading tools.

Reflection is the process by which a program can read its own metadata. A program is
said to reflect on itself, extracting metadata from its assembly and using that metadata
either to inform the user or to modify its own behavior.



Last Updated ( Saturday, 21 July 2007 )
 
< Prev   Next >
Main Menu
Home
News
Blog
Mail
Programming
Linux Articles
Community
Contact Us
Search
Links
News Feeds
FAQs
Sitemap
Advertisement
 
Top!
CODECLASSIC.COM
Copyright © 2008 All Rights Reserved
Top!