StringExtrasReplaceCharAtPosition Method |
Replace a char in a string with another
Namespace: ANDREICSLIB.ClassExtrasAssembly: ANDREICSLIB (in ANDREICSLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static void ReplaceCharAtPosition(
ref string str,
char newChar,
int position
)
Public Shared Sub ReplaceCharAtPosition (
ByRef str As String,
newChar As Char,
position As Integer
)
public:
static void ReplaceCharAtPosition(
String^% str,
wchar_t newChar,
int position
)
static member ReplaceCharAtPosition :
str : string byref *
newChar : char *
position : int -> unit
Parameters
- str
- Type: SystemString
The string to change a character in - newChar
- Type: SystemChar
The new character to be used - position
- Type: SystemInt32
The position to use the new character
Return Value
Type:
a string with the character replaced
See Also