Size.Equals

Equals(object)

Tests to see whether the specified object is a Size with the same dimensions as this Size.

public override bool Equals(object obj)
ParameterTypeDescription
objObjectThe Object to test.

Return Value

true if obj is a Size and has the same width and height as this Size; otherwise, false.

See Also


Equals(Size)

Tests whether other Size structure has the same size of this Size structure.

public bool Equals(Size other)
ParameterTypeDescription
otherSizeOther size to test

Return Value

This method returns true if other Size structure and its Width and Height properties are equal to the corresponding properties of this Size structure; otherwise, false.

See Also