charslaw / Pando

Pando serializes and tracks the history of a state tree
MIT License
2 stars 0 forks source link

Add abstract static `Default` property to `IPrimitiveSerializer` #46

Open schultzcole opened 2 years ago

schultzcole commented 2 years ago

Currently blocked because abstract static members are only supported in preview language versions

This would (a) make it impossible to forget to implement the Default property, and (b) ensure it uses the correct type. Currently it is quite easy to copy the property from another class and forget to change the type, which ends up being not useful.