EagerLoadCreate Method
Creates an EagerLoad object. Only the specified flags will be set to eager load.
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public static EagerLoad Create(
EagerLoadType et
)
- et EagerLoadType
- EagerLoadType
EagerLoadEagerLoad
The following example sets CelestialInfo and Cartesian properties to eager load using a static method. Other conversions will be lazy loaded.
//Create coordinate with defined eagerloading settings.
Coordinate coord = new Coordinate(25, 25, new DateTime(2018, 3, 2), EagerLoad.Create(EagerLoadType.Celestial | EagerLoadType.Cartesian));
//Display UTC sunset time at the location.
Console.WriteLine(coord.CelestialInfo.SunSet); //3/2/2018 4:23:46 PM
Console.WriteLine(coord.Cartesian); //0.8213938 0.38302222 0.42261826
//Load UTM_MGRS when ready.
coord.LoadUTM_MGRS_Info();
Console.WriteLine(coord.UTM); //35R 298154mE 2766437mN