ReplaceCharInString Method (String, Int32, String)

Chat2Desk

Chat2Desk

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

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

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

Syntax


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

Parameters

str
Type: String
The string.
index
Type: Int32
The index.
newString
Type: String
The new string.

Return Value