Esempio n. 1
0
        public FieldReference Import(FieldReference field)
        {
            CheckField(field);

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

            return(MetadataImporter.ImportField(field, default(ImportGenericContext)));
        }
Esempio n. 2
0
        public TypeReference Import(TypeReference type)
        {
            CheckType(type);

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

            return(MetadataImporter.ImportType(type, default(ImportGenericContext)));
        }
Esempio n. 3
0
        public MethodReference Import(MethodReference method, IGenericParameterProvider context)
        {
            CheckMethod(method);

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

            CheckContext(context, this);

            return(MetadataImporter.ImportMethod(method, GenericContextFor(context)));
        }
Esempio n. 4
0
        public FieldReference Import(FieldReference field, IGenericParameterProvider context)
        {
            CheckField(field);

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

            CheckContext(context, this);

            return(MetadataImporter.ImportField(field, GenericContextFor(context)));
        }
Esempio n. 5
0
        public TypeReference Import(TypeReference type, IGenericParameterProvider context)
        {
            CheckType(type);

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

            CheckContext(context, this);

            return(MetadataImporter.ImportType(type, GenericContextFor(context)));
        }
Esempio n. 6
0
        public MethodReference Import(SR.MethodBase method)
        {
            CheckMethod(method);

            return(MetadataImporter.ImportMethod(method, default(ImportGenericContext), ImportGenericKind.Definition));
        }