return FromRegistryKey(id, key);
}
#endif
-#if MONODROID
- var timeZoneInfo = AndroidTimeZones.GetTimeZone (id, id);
- if (timeZoneInfo == null)
- throw new TimeZoneNotFoundException ();
- return timeZoneInfo;
-#else
// Local requires special logic that already exists in the Local property (bug #326)
if (id == "Local")
return Local;
using (Stream stream = GetMonoTouchData (id)) {
return BuildFromStream (id, stream);
}
+#elif MONODROID
+ var timeZoneInfo = AndroidTimeZones.GetTimeZone (id, id);
+ if (timeZoneInfo == null)
+ throw new TimeZoneNotFoundException ();
+ return timeZoneInfo;
#elif LIBC
string filepath = Path.Combine (TimeZoneDirectory, id);
return FindSystemTimeZoneByFileName (id, filepath);
#else
throw new NotImplementedException ();
-#endif
#endif
}