internal ImportDefinition( ImportDefinitionKind kind, BlobHandle alias = default(BlobHandle), AssemblyReferenceHandle assembly = default(AssemblyReferenceHandle), Handle typeOrNamespace = default(Handle)) { Debug.Assert( typeOrNamespace.IsNil || typeOrNamespace.Kind == HandleKind.Blob || typeOrNamespace.Kind == HandleKind.TypeDefinition || typeOrNamespace.Kind == HandleKind.TypeReference || typeOrNamespace.Kind == HandleKind.TypeSpecification); Kind = kind; Alias = alias; TargetAssembly = assembly; _typeOrNamespace = typeOrNamespace; }
internal ImportDefinition( ImportDefinitionKind kind, BlobHandle alias = default(BlobHandle), AssemblyReferenceHandle assembly = default(AssemblyReferenceHandle), Handle typeOrNamespace = default(Handle)) { Debug.Assert( typeOrNamespace.IsNil || typeOrNamespace.Kind == HandleKind.Blob || typeOrNamespace.Kind == HandleKind.TypeDefinition || typeOrNamespace.Kind == HandleKind.TypeReference || typeOrNamespace.Kind == HandleKind.TypeSpecification); _kind = kind; _alias = alias; _assembly = assembly; _typeOrNamespace = typeOrNamespace; }