使用早期绑定反射特性
举例:
Type t = typeof(Winnebago);
object[] customAtts = t.GetCustomAttributes(false);
使用晚期绑定反射特性
举例:
Assemly asm = Assembly.Load(“Attributed….”);
Type vehicleDesc = asm.GetType(“Attributed….”);
Type[] types = asm.GetType();
foreach(Type t int types)
{
object[] objs = t.GetCustomAttributes(vehicleDesc,false);
}