skip to Main Content

Json – How to serialize the recursive dictionary in C#?

Below class is the recursive dictionary (tree-like structure). The EntityID is just the alias of string which must be accessed via HierarchicalRelationshipsMap.EntityID. public class HierarchicalRelationshipsMap: Dictionary<HierarchicalRelationshipsMap.EntityID, HierarchicalRelationshipsMap> { public class EntityID { public static implicit operator EntityID(string value) => new…

VIEW QUESTION
Back To Top
Search