GetMethod() public static method

public static GetMethod ( Type type, MethodInfo method ) : MethodInfo
type System.Type
method MethodInfo
return MethodInfo
Esempio n. 1
0
 internal override int ImportTo(ModuleBuilder other)
 {
     if (typeBuilder.IsGenericTypeDefinition)
     {
         return(other.ImportMember(TypeBuilder.GetMethod(typeBuilder, this)));
     }
     else if (other == typeBuilder.ModuleBuilder)
     {
         return(pseudoToken);
     }
     else
     {
         return(other.ImportMethodOrField(typeBuilder, name, this.MethodSignature));
     }
 }