GetRegionInformation() public static method

GetRegionInformation gets the RegionInformation for the region
public static GetRegionInformation ( string regionId ) : RegionInformation
regionId string The Id of the region to get the RegionInformation for
return RegionInformation
Esempio n. 1
0
        /// <summary>
        /// GetRegionInformation gets the RegionInformation for the CultureInfo
        /// </summary>
        /// <param name="cultureInfo">The CultureInfo to get the RegionInformation for</param>
        /// <returns>The RegionInformation for the CultureInfo</returns>
        public static RegionInformation GetRegionInformation(this CultureInfo cultureInfo)
        {
            AssertHasRegionInfo(cultureInfo);
            RegionInfo regionInfo = new RegionInfo(cultureInfo.Name);

            return(RegionExtensions.GetRegionInformation(regionInfo.TwoLetterISORegionName));
        }
Esempio n. 2
0
 /// <summary>
 /// GetRegionInformation gets the RegionInformation for the RegionInfo
 /// </summary>
 /// <param name="regionInfo">The RegionInfo to get the RegionInformation for</param>
 /// <returns>The RegionInformation for the RegionInfo</returns>
 public static RegionInformation GetRegionInformation(this RegionInfo regionInfo)
 {
     return(RegionExtensions.GetRegionInformation(regionInfo.TwoLetterISORegionName));
 }