Exemplo n.º 1
0
 public static AttributeType[] GetCustomAttributes <AttributeType>(IFieldPropertyInfo fieldPropertyInfo)
 {
     object[] attributes = fieldPropertyInfo.GetCustomAttributes(typeof(AttributeType), true);
     return((AttributeType[])Convert.ChangeType(attributes, typeof(AttributeType[])));
 }
Exemplo n.º 2
0
 public static object[] GetCustomAttributes(Type type, IFieldPropertyInfo fieldPropertyInfo)
 {
     return(fieldPropertyInfo.GetCustomAttributes(type, true));
 }