Mono.Cecil.MetadataImporter.ImportScope C# (CSharp) Method

ImportScope() private method

private ImportScope ( IMetadataScope scope ) : IMetadataScope
scope IMetadataScope
return IMetadataScope
        IMetadataScope ImportScope(IMetadataScope scope)
        {
            switch (scope.MetadataScopeType) {
            case MetadataScopeType.AssemblyNameReference:
                return ImportAssemblyName ((AssemblyNameReference) scope);
            case MetadataScopeType.ModuleDefinition:
                if (scope == module) return scope;
                return ImportAssemblyName (((ModuleDefinition) scope).Assembly.Name);
            case MetadataScopeType.ModuleReference:
                throw new NotImplementedException ();
            }

            throw new NotSupportedException ();
        }

Same methods

MetadataImporter::ImportScope ( System.Reflection assembly ) : Mono.Cecil.AssemblyNameReference