C#14 field backed properties

This commit is contained in:
ClemensFischer 2025-12-27 21:24:01 +01:00
parent 5d390071c6
commit be427c195a
20 changed files with 89 additions and 106 deletions

View file

@ -31,12 +31,10 @@ namespace MapControl
public const double Wgs84Flattening = 1d / 298.257223563;
public static readonly double Wgs84Eccentricity = Math.Sqrt((2d - Wgs84Flattening) * Wgs84Flattening);
private static MapProjectionFactory factory;
public static MapProjectionFactory Factory
{
get => factory ??= new MapProjectionFactory();
set => factory = value;
get => field ??= new MapProjectionFactory();
set;
}
/// <summary>