PERWAPI.ClassRef.GetMethod C# (CSharp) Method

GetMethod() public method

Get the method "name" for this class
public GetMethod ( string name ) : MethodRef
name string The method name
return MethodRef
        public MethodRef GetMethod(string name)
        {
            return (MethodRef)GetMethodDesc(name);
        }

Same methods

ClassRef::GetMethod ( string name, Type parTypes ) : MethodRef
ClassRef::GetMethod ( string name, Type parTypes, Type optTypes ) : MethodRef

Usage Example

Ejemplo n.º 1
0
 internal static MethodRef MethodBodyCtor(ClassRef klass)
 {
     MethodRef ctor = klass.GetMethod(".ctor");
     if (ctor != null)
         return ctor;
     else
     {
         ctor = klass.AddMethod(".ctor", PrimitiveType.Void, new Type[0]);
         ctor.AddCallConv(CallConv.Instance);
         return ctor;
     }
 }
All Usage Examples Of PERWAPI.ClassRef::GetMethod