From 2f76dd0b768d7f8c6d4967c6a5e5e97c4c9abbfc Mon Sep 17 00:00:00 2001 From: Kao Makino Date: Tue, 18 Aug 2020 10:46:06 -0700 Subject: [PATCH] Remove unnecessary special case handling from JsonParser --- contrib/TraceLogHelper/JsonParser.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/TraceLogHelper/JsonParser.cs b/contrib/TraceLogHelper/JsonParser.cs index 6fafb7fab3..9d7272a37f 100644 --- a/contrib/TraceLogHelper/JsonParser.cs +++ b/contrib/TraceLogHelper/JsonParser.cs @@ -80,8 +80,7 @@ namespace Magnesium TraceFile = file, DDetails = xEvent.Elements() .Where(a=>a.Name != "Type" && a.Name != "Time" && a.Name != "Machine" && a.Name != "ID" && a.Name != "Severity" && (!rolledEvent || a.Name != "OriginalTime")) - // When the key contains a colon character, it gets parsed as a:item - .ToDictionary(a=>a.Name.LocalName == "item" ? a.Attribute("item").Value : string.Intern(a.Name.LocalName), a=>(object)a.Value), + .ToDictionary(a=>string.Intern(a.Name.LocalName), a=>(object)a.Value), original = keepOriginalElement ? xEvent : null }; }