Equals

Size.Equals method

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