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 <jbevain@gmail.com>2017-03-17 21:33:50 +0300
committerGitHub <noreply@github.com>2017-03-17 21:33:50 +0300
commitec9be8d214f251bff5e5c5bd458a66c16467131a (patch)
treefcb0f64a254662e4335ca6bc3b89b1467a1ffcd0 /symbols/mdb/Mono.Cecil.Mdb
parentcdcf60a09aa11ba4cda05c45a420a73ae0de24f8 (diff)
parent7c8e1ad42527080fabf8832aba03e184bf965b29 (diff)
Merge pull request #358 from jbevain/writer-for-reader
Make symbols readers and writers provide their counterpart
Diffstat (limited to 'symbols/mdb/Mono.Cecil.Mdb')
-rw-r--r--symbols/mdb/Mono.Cecil.Mdb/MdbReader.cs5
-rw-r--r--symbols/mdb/Mono.Cecil.Mdb/MdbWriter.cs5
2 files changed, 10 insertions, 0 deletions
diff --git a/symbols/mdb/Mono.Cecil.Mdb/MdbReader.cs b/symbols/mdb/Mono.Cecil.Mdb/MdbReader.cs
index 43d92a6..e9782d6 100644
--- a/symbols/mdb/Mono.Cecil.Mdb/MdbReader.cs
+++ b/symbols/mdb/Mono.Cecil.Mdb/MdbReader.cs
@@ -58,6 +58,11 @@ namespace Mono.Cecil.Mdb {
this.documents = new Dictionary<string, Document> ();
}
+ public ISymbolWriterProvider GetWriterProvider ()
+ {
+ return new MdbWriterProvider ();
+ }
+
public bool ProcessDebugHeader (ImageDebugHeader header)
{
return symbol_file.Guid == module.Mvid;
diff --git a/symbols/mdb/Mono.Cecil.Mdb/MdbWriter.cs b/symbols/mdb/Mono.Cecil.Mdb/MdbWriter.cs
index 6575b51..8c3dbe3 100644
--- a/symbols/mdb/Mono.Cecil.Mdb/MdbWriter.cs
+++ b/symbols/mdb/Mono.Cecil.Mdb/MdbWriter.cs
@@ -48,6 +48,11 @@ namespace Mono.Cecil.Mdb {
this.source_files = new Dictionary<string, SourceFile> ();
}
+ public ISymbolReaderProvider GetReaderProvider ()
+ {
+ return new MdbReaderProvider ();
+ }
+
SourceFile GetSourceFile (Document document)
{
var url = document.Url;