From 95606db1da0bf159cfb9229fc4d54429923be4c8 Mon Sep 17 00:00:00 2001 From: Roman Date: Sat, 19 Nov 2016 15:20:12 +0100 Subject: [PATCH] versions and tombstones --- src/Emitter.Runtime/Diagnostics/Debugging/DebugHandle.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Emitter.Runtime/Diagnostics/Debugging/DebugHandle.cs b/src/Emitter.Runtime/Diagnostics/Debugging/DebugHandle.cs index 8b1ca5a3..93aa01ea 100644 --- a/src/Emitter.Runtime/Diagnostics/Debugging/DebugHandle.cs +++ b/src/Emitter.Runtime/Diagnostics/Debugging/DebugHandle.cs @@ -138,9 +138,14 @@ private void Populate() var entryType = entry.GetType(); var entryKey = entryType.GetField("Key").GetValue(entry); var entryValue = entryType.GetField("Value").GetValue(entry); + var entryVersion = entryType.GetField("Version").GetValue(entry); + var entryDeleted = (bool)entryType.GetField("Deleted").GetValue(entry); + + // Format the key + var key = string.Format("{0}: v{1}{2}", entryKey.ToString(), entryVersion.ToString(), entryDeleted ? "(-)" : ""); // Inspect the value - this.Members[entryKey.ToString()] = PopulateValue( + this.Members[key] = PopulateValue( entryValue ); }