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();