示例#1
0
 public MethodReference ImportReference(MethodReference method, IGenericParameterProvider context)
 {
     Mixin.CheckMethod(method);
     if (method.Module == this)
     {
         return(method);
     }
     ModuleDefinition.CheckContext(context, this);
     return(this.MetadataImporter.ImportReference(method, context));
 }
示例#2
0
 public FieldReference ImportReference(FieldReference field, IGenericParameterProvider context)
 {
     Mixin.CheckField(field);
     if (field.Module == this)
     {
         return(field);
     }
     ModuleDefinition.CheckContext(context, this);
     return(this.MetadataImporter.ImportReference(field, context));
 }
示例#3
0
 public TypeReference ImportReference(TypeReference type, IGenericParameterProvider context)
 {
     Mixin.CheckType(type);
     if (type.Module == this)
     {
         return(type);
     }
     ModuleDefinition.CheckContext(context, this);
     return(this.MetadataImporter.ImportReference(type, context));
 }
示例#4
0
 public MethodReference ImportReference(MethodBase method, IGenericParameterProvider context)
 {
     Mixin.CheckMethod(method);
     ModuleDefinition.CheckContext(context, this);
     return(this.ReflectionImporter.ImportReference(method, context));
 }
示例#5
0
 public FieldReference ImportReference(FieldInfo field, IGenericParameterProvider context)
 {
     Mixin.CheckField(field);
     ModuleDefinition.CheckContext(context, this);
     return(this.ReflectionImporter.ImportReference(field, context));
 }
示例#6
0
 public TypeReference ImportReference(Type type, IGenericParameterProvider context)
 {
     Mixin.CheckType(type);
     ModuleDefinition.CheckContext(context, this);
     return(this.ReflectionImporter.ImportReference(type, context));
 }