--- title: "How to: Test Point4D structures for equality and inequality" ms.date: "03/30/2017" helpviewer_keywords: - "inequality [WPF], testing Point4D structures for" - "equality [WPF], testing Point4D structures for" - "testing [WPF], Point4D structures for equality" - "Point4D structures [WPF], testing for inequality" - "testing [WPF], Point4D structures for inequality" - "Point4D structures [WPF], testing for equality" ms.assetid: e004a67e-db7f-4af8-a31f-e6b2a44ccf34 --- # How to: Test Point4D structures for equality and inequality This example shows how to test structures for equality and inequality. The following code illustrates how to test structures for equality and inequality using the equality methods. The structures are tested for equality using the overloaded equality (`==`) operator, then for inequality using the overloaded inequality (`!=`) operator, and finally a structure and a structure are checked for equality using the static method. ## Example [!code-csharp[3DGallery_procedural_snip#Point4DEqualityExample_csharp](~/samples/snippets/csharp/VS_Snippets_Wpf/3DGallery_procedural_snip/CSharp/Misc3DOperationsExample.cs#point4dequalityexample_csharp)] ## See also - - -