ReplaceCharInString Method (String, Int32, Char)

Chat2Desk

Chat2Desk

StringExtensions..::..ReplaceCharInString Method (String, Int32, Char)

Заменяет символ в строке на новый символ

Namespace:  Chat2Desk.Utils.Extensions
Assembly:  Chat2Desk (in Chat2Desk.dll)

Syntax


public static string ReplaceCharInString(
	this string str,
	int index,
	char newChar
)
<ExtensionAttribute> _
Public Shared Function ReplaceCharInString ( _
	str As String, _
	index As Integer, _
	newChar As Char _
) As String
[ExtensionAttribute]
public:
static String^ ReplaceCharInString(
	String^ str, 
	int^ index, 
	wchar_t^ newChar
)

Parameters

str
Type: String
The string.
index
Type: Int32
The index.
newChar
Type: Char
The new character.

Return Value