asp.net.ph

String.Replace Method ( Char, Char )

System Namespace   String Class


Replaces all occurrences of a specified Unicode character in the given String with another specified Unicode character.

[ VB ]
<Serializable>
Overloads Public Function Replace ( _
   ByVal oldChar As Char, _
   ByVal newChar As Char _
) As String

[ C# ]
[ Serializable ]
public string Replace (
   char oldChar,
   char newChar
);

[ C++ ]
[ Serializable ]
public: String* Replace (
   __wchar_t oldChar,
   __wchar_t newChar
);

[ JScript ]
public Serializable
function Replace (
   oldChar : Char,
   newChar : Char
) : String;

Parameters

oldChar
A Unicode character to be replaced.
newChar
A Unicode character to replace all occurrences of oldChar.

Return Value

A String equivalent to this instance but with all instances of oldChar replaced with newChar.

See Also

String Members   String.Replace Overload List   Char   Concat   Insert   Join   Remove   Split   Substring   Trim Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph