4 ms·
Mixins via inheritance is a sweet pattern that I miss in C# sometimes.
by hakanderyal 2y ago
Mixins via inheritance is a sweet pattern that I miss in C# sometimes.
- mastry 2y agoC# has default interface implementations now, that can be used to create mixins... https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/interface-implementation/mixins-with-default-interface-methods https://learn.microsoft.com/en-us/dotnet/csharp/advanced-top...
- hakanderyal 2y agoYeah I sometimes use them but they don’t cover all the cases. I’m waiting for roles/extensions to see if I can achieve a similar result. https://github.com/dotnet/csharplang/discussions/5496 https://github.com/dotnet/csharplang/discussions/5496