Size.Equals Method

Definition

Overloads

Equals(Object)

Compares an object to an instance of Size for equality.

Equals(Size)

Compares a value to an instance of Size for equality.

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) Size struct. For more information, see Size in the UWP API reference.

For more information about this member, see Size.Equals in the .NET Framework API reference.

Equals(Object)

Compares an object to an instance of Size for equality.

C#
public override bool Equals(object o);

Parameters

o
Object

The object to compare.

Returns

true if o is a Size value and the sizes of the two objects are equal; otherwise, false.

Applies to

UWP 10.0
Product Versions
UWP 10.0

Equals(Size)

Compares a value to an instance of Size for equality.

C#
public bool Equals(Windows.Foundation.Size value);

Parameters

value
Size

The size to compare to this current instance of Size.

Returns

true if the instances of Size are equal; otherwise, false.

Applies to

UWP 10.0
Product Versions
UWP 10.0