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

GetCustomAttribute() static private method

static private GetCustomAttribute ( ParameterInfo parameter ) : Attribute
parameter ParameterInfo
return System.Attribute
        internal static Attribute GetCustomAttribute(ParameterInfo parameter)
        {
            return GetCustomAttribute(parameter.MetadataToken, parameter.Member.Module);
        }

Same methods

MarshalAsAttribute::GetCustomAttribute ( RuntimeFieldInfo field ) : Attribute
MarshalAsAttribute::GetCustomAttribute ( int token, Module scope ) : Attribute

Usage Example

コード例 #1
0
 internal static bool IsDefined(RuntimeFieldInfo field)
 {
     return(MarshalAsAttribute.GetCustomAttribute(field) != null);
 }
All Usage Examples Of System.Runtime.InteropServices.MarshalAsAttribute::GetCustomAttribute