예제 #1
0
        public static T GetAttribute <T>(ICustomAttributeProvider attributeProvider, bool inherit) where T : Attribute
        {
            T[] attributes = GetAttributes <T>(attributeProvider, inherit);

            return(CollectionUtils.GetSingleItem(attributes, true));
        }
예제 #2
0
        public static bool IsPropertyIndexed(PropertyInfo property)
        {
            ValidationUtils.ArgumentNotNull(property, "property");

            return(!CollectionUtils.IsNullOrEmpty <ParameterInfo>(property.GetIndexParameters()));
        }