MethodReference Import(SR.MethodBase method, IGenericParameterProvider context)
        {
            CheckMethod(method);
            CheckContext(context, this);

            return(MetadataImporter.ImportMethod(method,
                                                 (IGenericContext)context,
                                                 context != null
                                        ? ImportGenericKind.Open
                                        : ImportGenericKind.Definition));
        }
        public MethodReference Import(MethodReference method)
        {
            CheckMethod(method);

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

            return(MetadataImporter.ImportMethod(method, null));
        }
        MethodReference Import(MethodReference method, IGenericParameterProvider context)
        {
            CheckMethod(method);

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

            CheckContext(context, this);

            return(MetadataImporter.ImportMethod(method, (IGenericContext)context));
        }
        public MethodReference Import(SR.MethodBase method)
        {
            CheckMethod(method);

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