public static Attribute[] GetCustomAttributes(ParameterInfo element, bool inherit) => CustomAttributeExtensions.GetCustomAttributes(element, inherit).ToArray();
 public static Attribute[] GetCustomAttributes(ParameterInfo element, Type attributeType, bool inherit) => CustomAttributeExtensions.GetCustomAttributes(element, attributeType, inherit).AsAttributeArray();
        public static Attribute[] GetCustomAttributes(Module element, bool inherit) => CustomAttributeExtensions.GetCustomAttributes(element).ToArray(); // "inherit" is meaningless for assemblies

        public static Attribute[] GetCustomAttributes(Module element, Type attributeType) => CustomAttributeExtensions.GetCustomAttributes(element, attributeType).AsAttributeArray();
 public static Attribute[] GetCustomAttributes(Module element, Type attributeType, bool inherit) => CustomAttributeExtensions.GetCustomAttributes(element, attributeType).AsAttributeArray(); // "inherit" is meaningless for modules
 public static Attribute GetCustomAttribute(Assembly element, Type attributeType) => CustomAttributeExtensions.GetCustomAttribute(element, attributeType);
 public static Attribute[] GetCustomAttributes(Module element, bool inherit) => CustomAttributeExtensions.GetCustomAttributes(element).ToArray(); // "inherit" is meaningless for assemblies
        public static Attribute[] GetCustomAttributes(Assembly element, Type attributeType, bool inherit) => CustomAttributeExtensions.GetCustomAttributes(element, attributeType).AsAttributeArray(); // "inherit" is meaningless for modules

        public static Attribute[] GetCustomAttributes(MemberInfo element) => CustomAttributeExtensions.GetCustomAttributes(element).ToArray();
 public static bool IsDefined(ParameterInfo element, Type attributeType, bool inherit) => CustomAttributeExtensions.IsDefined(element, attributeType, inherit);
 public static Attribute GetCustomAttribute(ParameterInfo element, Type attributeType, bool inherit) => CustomAttributeExtensions.GetCustomAttribute(element, attributeType, inherit);
 public static Attribute[] GetCustomAttributes(Assembly element) => CustomAttributeExtensions.GetCustomAttributes(element).ToArray();
 public static Attribute GetCustomAttribute(Module element, Type attributeType) => CustomAttributeExtensions.GetCustomAttribute(element, attributeType);
        public static Attribute GetCustomAttribute(Assembly element, Type attributeType, bool inherit) => CustomAttributeExtensions.GetCustomAttribute(element, attributeType); // "inherit" is meaningless for assemblies

        public static Attribute GetCustomAttribute(MemberInfo element, Type attributeType) => CustomAttributeExtensions.GetCustomAttribute(element, attributeType);
 public static Attribute GetCustomAttribute(Assembly element, Type attributeType, bool inherit) => CustomAttributeExtensions.GetCustomAttribute(element, attributeType); // "inherit" is meaningless for assemblies
 public static bool IsDefined(Module element, Type attributeType) => CustomAttributeExtensions.IsDefined(element, attributeType);
 public static Attribute[] GetCustomAttributes(MemberInfo element, Type type, bool inherit) => CustomAttributeExtensions.GetCustomAttributes(element, type, inherit).AsAttributeArray();
 public static bool IsDefined(Module element, Type attributeType, bool inherit) => CustomAttributeExtensions.IsDefined(element, attributeType); // "inherit" is meaningless for modules
 public static Attribute[] GetCustomAttributes(Module element) => CustomAttributeExtensions.GetCustomAttributes(element).ToArray();
예제 #18
0
 /// <summary>
 /// Gets the attributes.
 /// </summary>
 /// <typeparam name="T">The attribute type.</typeparam>
 /// <param name="type">The type.</param>
 public static IEnumerable <T> GetAttributes <T>(this Type type) where T : Attribute
 {
     return(CustomAttributeExtensions.GetCustomAttributes(type.GetTypeInfo(), typeof(T), false).Cast <T>());
 }
예제 #19
0
 public static Attribute[] GetCustomAttributes(ParameterInfo element, Type attributeType) => CustomAttributeExtensions.GetCustomAttributes(element, attributeType).ToArray();