Catel.Reflection.ReflectionExtensions.GetCustomAttributesEx C# (CSharp) Метод

GetCustomAttributesEx() публичный статический Метод

public static GetCustomAttributesEx ( this assembly, Type attributeType ) : System.Attribute[]
assembly this
attributeType System.Type
Результат System.Attribute[]
        public static Attribute[] GetCustomAttributesEx(this Assembly assembly, Type attributeType)
        {
            Argument.IsNotNull("assembly", assembly);
            Argument.IsNotNull("attributeType", attributeType);

#if NETFX_CORE || WP80 || PCL
            return assembly.GetCustomAttributes(attributeType).ToArray();
#else
            return assembly.GetCustomAttributes(attributeType, true).ToAttributeArray();
#endif
        }
    }