Click or drag to resize

EagerLoadCreate Method

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

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.5.1.1
Syntax
C#
public static EagerLoad Create(
	EagerLoadType et
)

Parameters

et
Type: CoordinateSharpEagerLoadType
EagerLoadType

Return Value

Type: EagerLoad
EagerLoad
Examples
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
See Also