Android Guides | Samples

Java.Lang.String.ContentEquals Method

Returns true if the chars in the given StringBuffer are the same as those in this string.

Syntax

[Android.Runtime.Register("contentEquals", "(Ljava/lang/StringBuffer;)Z", "")]
public Boolean ContentEquals (StringBuffer strbuf)

Parameters

sb
the StringBuffer to compare this string to.

Exceptions

TypeReason
NullPointerExceptionif sb is null.

Remarks

Returns true if the chars in the given StringBuffer are the same as those in this string.

[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