Feature Request: Seal non-inheritable classes
Posted: 05 Feb 2015, 04:45
I don't know about you, but I much prefer to get a compiler error than have to dig through documentation to find out that I wasn't supposed to do something. Plus, the main way that I learn a library is just by monkeying around with it.
With that in mind, it'd be nice if the classes which I'm not supposed to inherit threw a compiler error when I tried to inherit them. You can do this either with the "sealed" keyword (if the class in question has no inheritors in your assembly) or by following this series of posts by Eric Lippert
http://blogs.msdn.com/b/ericlippert/arc ... t-one.aspx
http://blogs.msdn.com/b/ericlippert/arc ... t-two.aspx
I think this should be done even when support for inheritance of a class is planned for a later date.
On that note, can I inherit Noesis.Panel?
With that in mind, it'd be nice if the classes which I'm not supposed to inherit threw a compiler error when I tried to inherit them. You can do this either with the "sealed" keyword (if the class in question has no inheritors in your assembly) or by following this series of posts by Eric Lippert
http://blogs.msdn.com/b/ericlippert/arc ... t-one.aspx
http://blogs.msdn.com/b/ericlippert/arc ... t-two.aspx
I think this should be done even when support for inheritance of a class is planned for a later date.
On that note, can I inherit Noesis.Panel?