Inheritance for C#? #2719
eericjacobson
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I think it would be very useful to have inheritance in SpacetimeDB. I know rust doesn't support it but rust supports traits whereas STDB doesn't let you use Interfaces with C#. I dont think it is too difficult to change the generator to also support inheritance. It seems that the only actual issue is that the Read and WriteFields method is being hidden by the derived class.
How else would you go about implementing a system like this
Without inheritance this gets quite silly.
For example
Maybe there is a work around i dont know about, but either way Inheritance in STDB for C# would be nice. And interfaces too i guess..
Beta Was this translation helpful? Give feedback.
All reactions