System.Reflection.RuntimePropertyInfo.GetCustomAttributes C# (CSharp) Method

GetCustomAttributes() public method

public GetCustomAttributes ( Type attributeType, bool inherit ) : Object[]
attributeType System.Type
inherit bool
return Object[]
        public override Object[] GetCustomAttributes(Type attributeType, bool inherit)
        {
            if (attributeType == null)
                throw new ArgumentNullException("attributeType");

            RuntimeType attributeRuntimeType = attributeType.UnderlyingSystemType as RuntimeType;

            if (attributeRuntimeType == null) 
                throw new ArgumentException(Environment.GetResourceString("Arg_MustBeType"),"attributeType");

            return CustomAttribute.GetCustomAttributes(this, attributeRuntimeType);
        }

Same methods

RuntimePropertyInfo::GetCustomAttributes ( bool inherit ) : Object[]