EagerLoadCreate Method

Creates an EagerLoad object. Only the specified flags will be set to eager load.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 2.21.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public static EagerLoad Create(
	EagerLoadType et
)

Parameters

et  EagerLoadType
EagerLoadType

Return Value

EagerLoad
EagerLoad

Example

The following example sets CelestialInfo and Cartesian properties to eager load using a static method. Other conversions will be lazy loaded.
C#
//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

See Also