GetCustomAttribute() static private method

static private GetCustomAttribute ( ParameterInfo parameter ) : Attribute
parameter ParameterInfo
return System.Attribute
Example #1
0
 internal static bool IsDefined(RuntimeFieldInfo field)
 {
     return(MarshalAsAttribute.GetCustomAttribute(field) != null);
 }
Example #2
0
 internal static bool IsDefined(RuntimeParameterInfo parameter)
 {
     return(MarshalAsAttribute.GetCustomAttribute(parameter) != null);
 }
Example #3
0
 internal static Attribute GetCustomAttribute(RuntimeFieldInfo field)
 {
     return(MarshalAsAttribute.GetCustomAttribute(field.MetadataToken, field.GetRuntimeModule()));
 }
Example #4
0
 internal static Attribute GetCustomAttribute(RuntimeParameterInfo parameter)
 {
     return(MarshalAsAttribute.GetCustomAttribute(parameter.MetadataToken, parameter.GetRuntimeModule()));
 }