Beispiel #1
0
        public MethodReference Import(MethodReference method)
        {
            CheckMethod(method);

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

            return(MetadataImporter.ImportMethod(method, null));
        }
Beispiel #2
0
        public FieldReference Import(FieldReference field)
        {
            CheckField(field);

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

            return(MetadataImporter.ImportField(field, null));
        }
Beispiel #3
0
        public TypeReference Import(TypeReference type)
        {
            CheckType(type);

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

            return(MetadataImporter.ImportType(type, null));
        }
Beispiel #4
0
        MethodReference Import(SR.MethodBase method, IGenericParameterProvider context)
        {
            CheckMethod(method);
            CheckContext(context, this);

            return(MetadataImporter.ImportMethod(method,
                                                 (IGenericContext)context,
                                                 context != null
                                        ? ImportGenericKind.Open
                                        : ImportGenericKind.Definition));
        }
Beispiel #5
0
        TypeReference Import(Type type, IGenericParameterProvider context)
        {
            CheckType(type);
            CheckContext(context, this);

            return(MetadataImporter.ImportType(
                       type,
                       (IGenericContext)context,
                       context != null
                                        ? ImportGenericKind.Open
                                        : ImportGenericKind.Definition));
        }
Beispiel #6
0
        MethodReference Import(MethodReference method, IGenericParameterProvider context)
        {
            CheckMethod(method);

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

            CheckContext(context, this);

            return(MetadataImporter.ImportMethod(method, (IGenericContext)context));
        }
Beispiel #7
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 #8
0
        TypeReference Import(TypeReference type, IGenericParameterProvider context)
        {
            CheckType(type);

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

            CheckContext(context, this);

            return(MetadataImporter.ImportType(type, (IGenericContext)context));
        }
Beispiel #9
0
        public MethodReference Import(SR.MethodBase method)
        {
            CheckMethod(method);

            return(MetadataImporter.ImportMethod(method, null, ImportGenericKind.Definition));
        }
Beispiel #10
0
        public FieldReference Import(SR.FieldInfo field)
        {
            CheckField(field);

            return(MetadataImporter.ImportField(field, null));
        }
Beispiel #11
0
        public TypeReference Import(Type type)
        {
            CheckType(type);

            return(MetadataImporter.ImportType(type, null, ImportGenericKind.Definition));
        }