Size.Equals 方法

定义

重载

Equals(Object)

是否 thisSize 等效于 obj

Equals(Size)

是否 thisSize 等效于 other

Equals(Object)

是否 thisSize 等效于 obj

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

参数

obj
System.Object

要比较的 this 对象。

返回

System.Boolean

true如果 obj 是 ,Size其值与 的 HeightWidth相同thisSize

适用于

Equals(Size)

是否 thisSize 等效于 other

public bool Equals (Xamarin.Forms.Size other);
override this.Equals : Xamarin.Forms.Size -> bool

参数

other
Size

Size正在比较的 this

返回

System.Boolean

true如果 的值与 的 HeightWidth相同Sizethis,则为 。other

适用于