Size.op_Equality

Size Equality operator

Tests whether two Size structures are equal.

public static bool operator ==(Size size1, Size size2)
ParameterTypeDescription
size1SizeThe Size structure on the left side of the equality operator.
size2SizeThe Size structure on the right of the equality operator.

Return Value

True if size1 and size2 have equal width and height; otherwise, false.

See Also