Size3D.Equals Method (Object)


Determines whether the specified object is a Size3D structure and whether the X, Y and Z properties of the specified Object are equal to the X, Y and Z properties of this Size3D structure.

Namespace:   System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)

public override bool Equals(
	object o


Type: System.Object

The Object to compare.

Return Value

Type: System.Boolean

true if instances are equal; otherwise, false.

true if o is a Size3D structure and is identical with this Size3D structure; otherwise, false.

Because Double values can lose precision when arithmetic operations are performed on them, a comparison between two Size3D instances that are logically equal might fail.

The following example shows how to check if an Object and a Size3D structure are equal.

.NET Framework
Available since 3.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft