Definition at line 2436 of file String.cs.
2437 {
2439 {
2440 throw new ArgumentNullException("oldValue");
2441 }
2443 {
2445 }
2447 {
2449 }
2453 {
2455 {
2457 }
2459 int num = 0;
2460 while (true)
2461 {
2464 {
2465 break;
2466 }
2469 }
2470 }
2471 else
2472 {
2474 while (true)
2475 {
2478 {
2479 break;
2480 }
2483 }
2484 }
2486 {
2487 return this;
2488 }
2491 return result;
2492 }
string ReplaceHelper(int oldValueLength, string newValue, ReadOnlySpan< int > indices)
static readonly string Empty
string Replace(string oldValue, string? newValue, bool ignoreCase, CultureInfo? culture)
References System.String._firstChar, System.SR.Argument_StringZeroLength, System.String.Empty, System.SpanHelpers.IndexOf(), System.String.Length, System.String.Replace(), System.String.ReplaceHelper(), and System.value.