You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take for example the case of public class Tree<T> in BH.oM.Data.Collections
The problem for Tree is that the type is simply stored as Tree'1 without containing the Generic types. This is because the class itself is a GenericTypeDefinition (i.e. uses <T> in the class definition). So trees are deserialisiing properly as long as there is only one type of tree being deserialise. As soon as there is more than one, FromJson fails:
Here's another example easier to reproduce:
If I would rerun the FromJson of the LibraryTree, it would then give me a CustomObject
The text was updated successfully, but these errors were encountered:
Description:
Take for example the case of
public class Tree<T>
inBH.oM.Data.Collections
The problem for Tree is that the type is simply stored as
Tree'1
without containing the Generic types. This is because the class itself is a GenericTypeDefinition (i.e. uses<T>
in the class definition). So trees are deserialisiing properly as long as there is only one type of tree being deserialise. As soon as there is more than one, FromJson fails:Here's another example easier to reproduce:
If I would rerun the FromJson of the LibraryTree, it would then give me a CustomObject
The text was updated successfully, but these errors were encountered: