TextUtils.Equals Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Equals(ICharSequence, ICharSequence) |
Returns true if a and b are equal, including if they are both null. |
Equals(String, String) |
Returns true if a and b are equal, including if they are both null. |
Equals(ICharSequence, ICharSequence)
Returns true if a and b are equal, including if they are both null.
[Android.Runtime.Register("equals", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z", "")]
public static bool Equals (Java.Lang.ICharSequence? a, Java.Lang.ICharSequence? b);
[<Android.Runtime.Register("equals", "(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z", "")>]
static member Equals : Java.Lang.ICharSequence * Java.Lang.ICharSequence -> bool
Parameters
first CharSequence to check
second CharSequence to check
Returns
true if a and b are equal
- Attributes
Remarks
Returns true if a and b are equal, including if they are both null.
Note: In platform versions 1.1 and earlier, this method only worked well if both the arguments were instances of String.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Equals(String, String)
Returns true if a and b are equal, including if they are both null.
public static bool Equals (string? a, string? b);
static member Equals : string * string -> bool
Parameters
- a
- String
first CharSequence to check
- b
- String
second CharSequence to check
Returns
true if a and b are equal
Remarks
Returns true if a and b are equal, including if they are both null.
Note: In platform versions 1.1 and earlier, this method only worked well if both the arguments were instances of String.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.