Exemple #1
0
 public FieldReference Import(FieldReference field)
 {
     ModuleDefinition.CheckField(field);
     if (field.Module == this)
     {
         return(field);
     }
     return(this.MetadataImporter.ImportField(field, new ImportGenericContext()));
 }
Exemple #2
0
 public FieldReference Import(FieldReference field, IGenericParameterProvider context)
 {
     ModuleDefinition.CheckField(field);
     if (field.Module == this)
     {
         return(field);
     }
     ModuleDefinition.CheckContext(context, this);
     return(this.MetadataImporter.ImportField(field, ModuleDefinition.GenericContextFor(context)));
 }