Bridge

String..::..Replace Method (Char, Char)

Returns a new string in which all occurrences of a specified Unicode character in this instance are replaced with another specified Unicode character.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[TemplateAttribute]
public string Replace(
	char oldChar,
	char replaceChar
)
<TemplateAttribute> _
Public Function Replace ( _
	oldChar As Char, _
	replaceChar As Char _
) As String
[TemplateAttribute]
public:
String^ Replace(
	wchar_t^ oldChar, 
	wchar_t^ replaceChar
)

Parameters

oldChar
Type: System..::..Char
The Unicode character to be replaced.
replaceChar
Type: System..::..Char

Return Value

A string that is equivalent to this instance except that all instances of oldChar are replaced with newChar. If oldChar is not found in the current instance, the method returns the current instance unchanged.