private void SerializeImport(BlobBuilder writer, AssemblyReferenceAlias alias)
 {
     // <import> ::= AliasAssemblyReference <alias> <target-assembly>
     writer.WriteByte((byte)ImportDefinitionKind.AliasAssemblyReference);
     writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(alias.Name)));
     writer.WriteCompressedInteger(MetadataTokens.GetRowNumber(GetOrAddAssemblyReferenceHandle(alias.Assembly)));
 }
Пример #2
0
 private void SerializeImport(BlobBuilder writer, AssemblyReferenceAlias alias)
 {
     // <import> ::= AliasAssemblyReference <alias> <target-assembly>
     writer.WriteByte((byte)ImportDefinitionKind.AliasAssemblyReference);
     writer.WriteCompressedInteger((uint)_debugHeapsOpt.ResolveBlobIndex(_debugHeapsOpt.GetBlobIndexUtf8(alias.Name)));
     writer.WriteCompressedInteger((uint)GetOrAddAssemblyRefIndex(alias.Assembly));
 }