From 0d0b98d7d778d817c5697c2179a6934c83adbf77 Mon Sep 17 00:00:00 2001 From: ClemensF Date: Wed, 3 Oct 2018 01:06:40 +0200 Subject: [PATCH] Version 4.10.0: Added MapProjections library project. --- MapProjections/Shared/GeoApiProjection.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/MapProjections/Shared/GeoApiProjection.cs b/MapProjections/Shared/GeoApiProjection.cs index aeb64f67..f9924893 100644 --- a/MapProjections/Shared/GeoApiProjection.cs +++ b/MapProjections/Shared/GeoApiProjection.cs @@ -34,7 +34,12 @@ namespace MapControl.Projections get { return coordinateTransform; } set { - coordinateTransform = value ?? throw new ArgumentNullException("The property value must not be null."); + if (value == null) + { + throw new ArgumentNullException("The property value must not be null."); + } + + coordinateTransform = value; mathTransform = coordinateTransform.MathTransform; inverseTransform = mathTransform.Inverse();