An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Will not doing and good to ask here, ask here Suggest a feature for Visual Studio
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi everyone,
I know static classes are seen as dirty. I know the interface and abstract class need to be instantiated. I know.
Still I would love for there to be a "static interface" - an interface that you could put on a static class.
And I would also love a static abstract base class with static virtual methods that you can override in another static class.
This is because I find it very usefull to do all my inheritance on models, and then have static classes for specific logic.
These business classes are static because you can't instantiate them, and every method has to work only with it's parameters.
Right now, loosing inheritance is a big price to pay, but when all inheritance is already done, I experiance it as a very clean way of programming.
Could you please consider adding an static interface and a static abstract class to our language c#?
With kind regards,
Ingmar
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Answer accepted by question author
Will not doing and good to ask here, ask here Suggest a feature for Visual Studio