ImmutableArray<T>.Equals 方法

定义

重载

Equals(ImmutableArray<T>)

指示指定的数组是否等于此数组。Indicates whether specified array is equal to this array.

Equals(Object)

确定此数组是否等于指定的对象。Determines if this array is equal to the specified object.

Equals(ImmutableArray<T>)

指示指定的数组是否等于此数组。Indicates whether specified array is equal to this array.

public:
 virtual bool Equals(System::Collections::Immutable::ImmutableArray<T> other);
public bool Equals (System.Collections.Immutable.ImmutableArray<T> other);
public bool Equals (System.Collections.Immutable.ImmutableArray<T>? other);
override this.Equals : System.Collections.Immutable.ImmutableArray<'T> -> bool
Public Function Equals (other As ImmutableArray(Of T)) As Boolean

参数

other
ImmutableArray<T>

一个与此对象进行比较的对象。An object to compare with this object.

返回

Boolean

如果 other 等于此数组,则为 true;否则为 falsetrue if other is equal to this array; otherwise, false.

实现

适用于

Equals(Object)

确定此数组是否等于指定的对象。Determines if this array is equal to the specified object.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

参数

obj
Object

要与此数组进行比较的 ObjectThe Object to compare with this array.

返回

Boolean

如果此数组等于 obj,则为 true;否则为 falsetrue if this array is equal to obj; otherwise, false.

适用于