Android Guides | Samples

Java.Lang.String.Replace Method

Returns a copy of this string after replacing occurrences of the given char with another.

Syntax

[Android.Runtime.Register("replace", "(CC)Ljava/lang/String;", "")]
public String Replace (Char oldChar, Char newChar)

Parameters

oldChar
the character to replace.
newChar
the replacement character.

Remarks

Returns a copy of this string after replacing occurrences of the given char with another.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1