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

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

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

            return(MetadataImporter.ImportField(field, null));
        }
Beispiel #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));
        }
Beispiel #4
0
        public FieldReference Import(SR.FieldInfo field)
        {
            CheckField(field);

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