Walter.BOM
GetLocation Method (GeoExtensionMethods)
Walter.BOM Assembly > Walter.BOM.Geo Namespace > GeoExtensionMethods Class : GetLocation Method
The culture information object from which to derive the geographic location.
Retrieves the geographic location associated with a specified System.Globalization.CultureInfo object, utilizing its two-letter ISO language name.
Syntax
public static GeoLocation GetLocation( 
   CultureInfo info
)

Parameters

info
The culture information object from which to derive the geographic location.

Return Value

The GeoLocation corresponding to the culture specified by info. If the location cannot be determined, returns GeoLocation.UnKnown.
Remarks
This method attempts to map a culture to its geographic location, which can be particularly useful for localizing content or tailoring application behavior based on cultural settings. It leverages the two-letter ISO language name provided by the System.Globalization.CultureInfo.TwoLetterISOLanguageName property as a key for this mapping. In cases where a direct mapping is not available or the culture is not associated with a specific geographic location, the method defaults to returning GeoLocation.UnKnown.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GeoExtensionMethods Class
GeoExtensionMethods Members