A reference to this instance with all instances of oldValue replaced by newValue.
Type Reason ArgumentNullException oldValue is a null reference. ArgumentException The length of oldvalue is zero.
This method performs an ordinal, case-sensitive comparison to identify occurrences of oldValue in the current instance. If newValue is null or string.Empty, all occurrences of oldValue are removed.