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)); }
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)); }
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)); }
public MethodReference ImportReference(MethodBase method, IGenericParameterProvider context) { Mixin.CheckMethod(method); ModuleDefinition.CheckContext(context, this); return(this.ReflectionImporter.ImportReference(method, context)); }
public FieldReference ImportReference(FieldInfo field, IGenericParameterProvider context) { Mixin.CheckField(field); ModuleDefinition.CheckContext(context, this); return(this.ReflectionImporter.ImportReference(field, context)); }
public TypeReference ImportReference(Type type, IGenericParameterProvider context) { Mixin.CheckType(type); ModuleDefinition.CheckContext(context, this); return(this.ReflectionImporter.ImportReference(type, context)); }