Add this operator to make static string methods into extension methods. #106441
Unanswered
JustinMinnaar
asked this question in
Ideas
Replies: 2 comments 2 replies
-
As described in dotnet/csharplang#8363 (reply in thread) , this is not supported by C# language now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be nice if existing static methods on the String class could be changed to extension methods.
Then, instead of
You would be able to use
This could easily be done by modifying the string library and adding the this operator to the methods.
Beta Was this translation helpful? Give feedback.
All reactions