public static T GetAttribute <T>(ICustomAttributeProvider attributeProvider, bool inherit) where T : Attribute { T[] attributes = GetAttributes <T>(attributeProvider, inherit); return(CollectionUtils.GetSingleItem(attributes, true)); }
public static bool IsPropertyIndexed(PropertyInfo property) { ValidationUtils.ArgumentNotNull(property, "property"); return(!CollectionUtils.IsNullOrEmpty <ParameterInfo>(property.GetIndexParameters())); }