Skip to content

Commit

Permalink
xml to dictionary .net 4.5 bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cempehlivan committed Apr 16, 2024
1 parent 315150c commit 2dd10fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CP.VPOS/Helpers/FoundationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private static Dictionary<string, object> getChildDictionary(this System.Xml.Xml
string keyName = sub.LocalName;

if (keyValuePairs.ContainsKey(keyName))
keyName = $"{keyName}||{DateTime.Now.Ticks}";
keyName = $"{keyName}||{Guid.NewGuid()}";

if (sub.ChildNodes.Count > 1 || sub.FirstChild?.HasChildNodes == true)
keyValuePairs.Add(keyName, sub.getChildDictionary());
Expand Down

0 comments on commit 2dd10fc

Please sign in to comment.