StringExtensions.Replace(this string strA, int? startIndex, int? count, string strB) Method
.NET Standard 2.x
Replaces a portion of one string with another.
Namespace: PowerScript.Bridge
Assembly: PowerScript.Bridge.dll
Syntax
public static string Replace(this string strA, int? startIndex, int? count, string strB);
Parameters
strA
System.String
The string in which you want to replace characters with strB.
startIndex
System.Int32
An int whose value is the number of the first character you want replaced. (The first character in the string is 0
.)
count
System.Int32
An int whose value is the number of characters you want to replace.
strB
System.String
The string that will replace characters in strA. The number of characters in strB can be greater than, equal to, or less than the number of characters you are replacing.
Returns
System.String
Returns the string with the characters replaced if it succeeds and the empty string if it fails. If any argument's value is null
, Replace
returns null
.
Examples
Coming soon.
Applies to
.NET Standard
2.x