Add Method Inheritance & Abstract-like Method (mean like Abstract of class here) #117453
-
Sorry For My Bad English
IDispose Example (I Suggest For Cases Like This)
It Will Been Better If Become
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is a C# language topic and should go to https://github.com/dotnet/csharplang/discussions .
The idea isn't a general approach. What about a method requires multiple such helpers? |
Beta Was this translation helpful? Give feedback.
This is a C# language topic and should go to https://github.com/dotnet/csharplang/discussions .
abstract
means polymorphic - external caller can get overridden behavior by specifying the base method. This proposal doesn't show polymorphic. Instead, it's about utility methods that serves as a building block.The idea isn't a general approach. What about a method requires multiple such helpers?
var a = B();
is very clear approach and perfectly extensible.