Index: Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/HydraRingSection.cs =================================================================== diff -u -r150366ef474f9522b3af857c29e3eac484910700 -ra1bba29ba0d84061cca88da8324957087d564db9 --- Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/HydraRingSection.cs (.../HydraRingSection.cs) (revision 150366ef474f9522b3af857c29e3eac484910700) +++ Ringtoets/HydraRing/src/Ringtoets.HydraRing.Calculation/Data/HydraRingSection.cs (.../HydraRingSection.cs) (revision a1bba29ba0d84061cca88da8324957087d564db9) @@ -26,10 +26,6 @@ /// public class HydraRingSection { - private readonly int sectionId; - private readonly double sectionLength; - private readonly double crossSectionNormal; - /// /// Creates a new instance of the class. /// @@ -38,45 +34,27 @@ /// The normal of the cross section. public HydraRingSection(int sectionId, double sectionLength, double crossSectionNormal) { - this.sectionId = sectionId; - this.sectionLength = sectionLength; - this.crossSectionNormal = crossSectionNormal; + SectionId = sectionId; + SectionLength = sectionLength; + CrossSectionNormal = crossSectionNormal; } /// /// Gets the id of the section. /// - public int SectionId - { - get - { - return sectionId; - } - } + public int SectionId { get; } /// /// Gets the length of the section. /// - public double SectionLength - { - get - { - return sectionLength; - } - } + public double SectionLength { get; } /// /// Gets the normal of the cross section. /// /// /// The normal corresponds to the angle of the straight line perpendicular to the stretch at the location of the cross section (with respect to the north). /// - public double CrossSectionNormal - { - get - { - return crossSectionNormal; - } - } + public double CrossSectionNormal { get; } } } \ No newline at end of file