Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJb Evain <jb@evain.net>2019-08-30 01:19:13 +0300
committerGitHub <noreply@github.com>2019-08-30 01:19:13 +0300
commitb632818fd4b4488956f12fe065fa8573c1982eb4 (patch)
tree22036bab4946e12d5e4331e02bc4c57fcd6843cc /symbols/pdb/Mono.Cecil.Pdb/NativePdbReader.cs
parent104b797cc69bcbc3eb36b68f5d0a9ec68b537d24 (diff)
Add support for reading and writing document checksums in native pdbs (#616)
Diffstat (limited to 'symbols/pdb/Mono.Cecil.Pdb/NativePdbReader.cs')
-rw-r--r--symbols/pdb/Mono.Cecil.Pdb/NativePdbReader.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/symbols/pdb/Mono.Cecil.Pdb/NativePdbReader.cs b/symbols/pdb/Mono.Cecil.Pdb/NativePdbReader.cs
index f3ca8b2..2d6b1ba 100644
--- a/symbols/pdb/Mono.Cecil.Pdb/NativePdbReader.cs
+++ b/symbols/pdb/Mono.Cecil.Pdb/NativePdbReader.cs
@@ -352,9 +352,11 @@ namespace Mono.Cecil.Pdb {
return document;
document = new Document (name) {
- Language = source.language.ToLanguage (),
- LanguageVendor = source.vendor.ToVendor (),
- Type = source.doctype.ToType (),
+ LanguageGuid = source.language,
+ LanguageVendorGuid = source.vendor,
+ TypeGuid = source.doctype,
+ HashAlgorithmGuid = source.checksumAlgorithm,
+ Hash = source.checksum,
};
documents.Add (name, document);
return document;