Example #1
0
        FieldReference Import(SR.FieldInfo field, IGenericParameterProvider context)
        {
            CheckField(field);
            CheckContext(context, this);

            return(MetadataImporter.ImportField(field, (IGenericContext)context));
        }
Example #2
0
        public FieldReference Import(FieldReference field)
        {
            CheckField(field);

            if (field.Module == this)
            {
                return(field);
            }

            return(MetadataImporter.ImportField(field, null));
        }
Example #3
0
        FieldReference Import(FieldReference field, IGenericParameterProvider context)
        {
            CheckField(field);

            if (field.Module == this)
            {
                return(field);
            }

            CheckContext(context, this);

            return(MetadataImporter.ImportField(field, (IGenericContext)context));
        }
Example #4
0
        public FieldReference Import(SR.FieldInfo field)
        {
            CheckField(field);

            return(MetadataImporter.ImportField(field, null));
        }