Share via


NSString.Equals Method

Definition

Overloads

Equals(NSString, NSString)

Compare two NSString instances.

Equals(Object)

Compare this NSString to another object.

Equals(NSString, NSString)

Compare two NSString instances.

public static bool Equals(Foundation.NSString? a, Foundation.NSString? b);
static member Equals : Foundation.NSString * Foundation.NSString -> bool

Parameters

a
NSString

The first NSString to compare.

b
NSString

The second NSString to compare.

Returns

true if equal, false otherwise.

Applies to

Equals(Object)

Compare this NSString to another object.

public override bool Equals(object? obj);
override this.Equals : obj -> bool

Parameters

obj
Object

The other object to compare against.

Returns

true if equal, false otherwise.

Applies to