System.Runtime.InteropServices.OptionalAttribute.GetCustomAttribute C# (CSharp) Method

GetCustomAttribute() static private method

static private GetCustomAttribute ( ParameterInfo parameter ) : Attribute
parameter System.Reflection.ParameterInfo
return System.Attribute
        internal static Attribute GetCustomAttribute(ParameterInfo parameter) 
        { 
            return parameter.IsOptional ? new OptionalAttribute() : null; 
        }
        internal static bool IsDefined(ParameterInfo parameter)