[Proposal] Allow overriding for all .NET's classes #65487
-
Motivation : Libido : |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 12 replies
-
You're asking for API that allows you to change method bodies? Would this be at runtime or compile time? |
Beta Was this translation helpful? Give feedback.
-
An example is Virtual member does cost a lot. Meanwhile, making virtual to non virtual is breaking. |
Beta Was this translation helpful? Give feedback.
-
That's very bold a statement. That being said, it's a good idea to revisit sealed APIs and consider unsealing them. |
Beta Was this translation helpful? Give feedback.
-
The use of sealed classes are more performant ( https://stackoverflow.com/a/3849957/7600021 |
Beta Was this translation helpful? Give feedback.
I cannot imagine supporting such a mechanism, for a myriad of reasons not least cost, supportability, and value. You can create your own Stack type and use it.