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