예제 #1
0
 /// <summary>
 /// Returns an enumeration over TimeZones associated with the given country.
 /// </summary>
 /// <param name="country">The ISO 3166 two-letter country code, or NULL to retrieve zones not affiliated with any country.</param>
 public static IEnumerable <TimeZone> GetCountryTimeZones(string country)
 {
     return(CreateTimeZoneList(() =>
     {
         var en = NativeMethods.ucal_openCountryTimeZones(country, out ErrorCode errorCode);
         return new Tuple <SafeEnumeratorHandle, ErrorCode>(en, errorCode);
     }));
 }