Metadata, reflection and attribute

 

Metadata is information about the data -- that is, information about the types, code, assembly, and so forth -- that is stored along with your program.

 

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. Its basic three uses:

1. Obtaining Class and Type Information from an Assembly

2. Obtaining Member Information from a Class

3. Dynamically Invoking Methods from Classes in an Assembly

More detail, please refer to:

Programming C#: Attributes and Reflection

C# Reflection and Dynamic Method Invocation

 

转载于:https://www.cnblogs.com/taoxu0903/archive/2010/05/23/1741932.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值