Index: src/Common/NetTopologySuite/Triangulate/ConstraintVertex.cs =================================================================== diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a --- src/Common/NetTopologySuite/Triangulate/ConstraintVertex.cs (.../ConstraintVertex.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9) +++ src/Common/NetTopologySuite/Triangulate/ConstraintVertex.cs (.../ConstraintVertex.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -3,7 +3,6 @@ namespace GisSharpBlog.NetTopologySuite.Triangulate { - /// /// A vertex in a Constrained Delaunay Triangulation. /// The vertex may or may not lie on a constraint. @@ -12,33 +11,20 @@ /// Martin Davis public class ConstraintVertex : Vertex { - private bool isOnConstraint; private object constraint; /// /// Creates a new constraint vertex /// /// the location of the vertex public ConstraintVertex(ICoordinate p) - : base(p) - { - } + : base(p) {} /// /// Gets or sets whether this vertex lies on a constraint. /// /// true if the vertex lies on a constraint - public bool IsOnConstraint - { - get - { - return isOnConstraint; - } - set - { - this.isOnConstraint = value; - } - } + public bool IsOnConstraint { get; set; } /// /// Gets or sets the external constraint object @@ -52,8 +38,8 @@ } set { - isOnConstraint = true; - this.constraint = value; + IsOnConstraint = true; + constraint = value; } } @@ -65,8 +51,9 @@ /// the constraint vertex to merge protected internal void Merge(ConstraintVertex other) { - if (other.isOnConstraint) { - isOnConstraint = true; + if (other.IsOnConstraint) + { + IsOnConstraint = true; constraint = other.constraint; } }