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
The discriminator should follow the following designs:
the base model should be abstract.
the discriminator property is internal by default. There is an option that could make it public.
the ctor of base model is protected. The discriminator property is passed in in this ctor.
the derived models inherit from the base model, and assign value to the discriminator property in its initialization ctor.
the serialization ctor takes the discriminator as a parameter
an extra internal class (maybe sealed) is created which inherits from the base model with the name of Unknown{BaseModelName} to represent the case that we get an unknown value of the discriminator from the service.
The text was updated successfully, but these errors were encountered:
The discriminator should follow the following designs:
Unknown{BaseModelName}
to represent the case that we get an unknown value of the discriminator from the service.The text was updated successfully, but these errors were encountered: