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
In the PropertyModelBase class, a private readonly member JsonSchemaProperty _property is defined and populated in the constructor.
Also, in the derieved PropertyModel class, a private readopnly member JsonSchemaProperty _property is defined and populated in the constructor after passing it to the base constructor.
Is that not inefficient and memory waste? Would it not be a better approach to make the JsonSchemaProperty _property in PropertyModelBase be protected or expose it via a read-only protected property?
The text was updated successfully, but these errors were encountered:
In the
PropertyModelBase
class, a private readonly memberJsonSchemaProperty _property
is defined and populated in the constructor.Also, in the derieved
PropertyModel
class, a private readopnly memberJsonSchemaProperty _property
is defined and populated in the constructor after passing it to the base constructor.Is that not inefficient and memory waste? Would it not be a better approach to make the
JsonSchemaProperty _property
inPropertyModelBase
be protected or expose it via a read-only protected property?The text was updated successfully, but these errors were encountered: