Add String.Replace() method overloads to accept String Arrays #40407
Labels
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
area-System.Runtime
Milestone
This issue has been moved from a ticket on Developer Community.
I’d suggest adding 2 overloads for the String.Replace() method to accept string arrays.
1. Suggestion:
String.Replace(String[], String[])
This will replace all occurences from the first argument (String[]) with the second argument (String[]).
Example:
At the moment you could call 3x Replace() in a chain to achieve this or write a new method for that with a loop etc.
2. Suggestion:
String.Replace(String[], String)
This will replace all occurences from the first argument (String[]) with the second argument (String)
Example:
Original Comments
Feedback Bot on 7/1/2020, 01:33 AM:
Thank you for taking the time to provide your suggestion. We will do some preliminary checks to make sure we can proceed further. We'll provide an update once the issue has been triaged by the product team.
The text was updated successfully, but these errors were encountered: