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