Struggling with generic class... design?
I have
The extending classes will have properties that
Instead of using
What's the best way I can achieve this?
BaseClass that other classes will extend from:The extending classes will have properties that
BaseClass doesn't have, do knowing the type is important for deserialization.Instead of using
MyClassA.JsonDeserialiseAs<MyClassA>(json) every time, I'd like to be able to use MyClassA.JsonDeserialize(json)What's the best way I can achieve this?