Make C# String static methods act as extension methods #8363
Unanswered
JustinMinnaar
asked this question in
Language Ideas
Replies: 1 comment 7 replies
-
This sounds more like an API change request, which should go into the runtime repo. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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