public FieldReference Import(FieldReference field) { CheckField(field); if (field.Module == this) { return(field); } return(MetadataImporter.ImportField(field, default(ImportGenericContext))); }
public TypeReference Import(TypeReference type) { CheckType(type); if (type.Module == this) { return(type); } return(MetadataImporter.ImportType(type, default(ImportGenericContext))); }
public MethodReference Import(MethodReference method, IGenericParameterProvider context) { CheckMethod(method); if (method.Module == this) { return(method); } CheckContext(context, this); return(MetadataImporter.ImportMethod(method, GenericContextFor(context))); }
public FieldReference Import(FieldReference field, IGenericParameterProvider context) { CheckField(field); if (field.Module == this) { return(field); } CheckContext(context, this); return(MetadataImporter.ImportField(field, GenericContextFor(context))); }
public TypeReference Import(TypeReference type, IGenericParameterProvider context) { CheckType(type); if (type.Module == this) { return(type); } CheckContext(context, this); return(MetadataImporter.ImportType(type, GenericContextFor(context))); }
public MethodReference Import(SR.MethodBase method) { CheckMethod(method); return(MetadataImporter.ImportMethod(method, default(ImportGenericContext), ImportGenericKind.Definition)); }