Click or drag to resize
StringExtrasReplaceCharAtPosition Method
Replace a char in a string with another

Namespace: ANDREICSLIB.ClassExtras
Assembly: ANDREICSLIB (in ANDREICSLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void ReplaceCharAtPosition(
	ref string str,
	char newChar,
	int position
)

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