Enum.Equals(Object) Method

Definition

Returns true if the specified object is equal to this enum constant.

C#
[Android.Runtime.Register("equals", "(Ljava/lang/Object;)Z", "")]
public override sealed bool Equals (Java.Lang.Object? other);

Parameters

other
Object

the object to be compared for equality with this object.

Returns

true if the specified object is equal to this enum constant.

Attributes

Remarks

Returns true if the specified object is equal to this enum constant.

Java documentation for java.lang.Enum.equals(java.lang.Object).

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

Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35