Index: src/Common/NetTopologySuite/Noding/SinglePassNoder.cs =================================================================== diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a --- src/Common/NetTopologySuite/Noding/SinglePassNoder.cs (.../SinglePassNoder.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9) +++ src/Common/NetTopologySuite/Noding/SinglePassNoder.cs (.../SinglePassNoder.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -9,20 +9,21 @@ /// public abstract class SinglePassNoder : INoder { - private ISegmentIntersector segInt = null; - /// /// Initializes a new instance of the class. /// - public SinglePassNoder() { } + public SinglePassNoder() + { + SegmentIntersector = null; + } /// /// Initializes a new instance of the class. /// /// The to use. public SinglePassNoder(ISegmentIntersector segInt) { - this.segInt = segInt; + SegmentIntersector = segInt; } /// @@ -32,19 +33,8 @@ /// simply record the presence of intersections. /// However, some s may require that intersections be added. /// - public ISegmentIntersector SegmentIntersector - { - get - { - return segInt; - } - set - { - segInt = value; - } - } + public ISegmentIntersector SegmentIntersector { get; set; } - /// /// Computes the noding for a collection of s. /// Some Noders may add all these nodes to the input s; @@ -59,6 +49,5 @@ /// /// public abstract IList GetNodedSubstrings(); - } -} +} \ No newline at end of file