提交 d49ecf5a 编写于 作者: J Jonathan Pryor

[monodroid] Fix System.TimeZoneInfo.

Most System.TimeZoneInfo members weren't be included in the build.
上级 f4c13c06
......@@ -18,7 +18,7 @@
* limitations under the License.
*/
#if (INSIDE_CORLIB && ANDROID)
#if (INSIDE_CORLIB && MONODROID)
using System;
using System.Collections.Generic;
......
......@@ -31,7 +31,7 @@ using System.Runtime.CompilerServices;
[assembly:TypeForwardedTo (typeof(TimeZoneInfo))]
#elif NET_3_5 || (MOONLIGHT && INSIDE_CORLIB)
#else
using System.Collections.Generic;
using System.Collections.ObjectModel;
......@@ -528,8 +528,9 @@ namespace System
}
#endif
#if MONODROID
systemTimeZones.AddRange (ZoneInfoDB.GetAvailableIds ()
.Select (id => ZoneInfoDB.GetTimeZone (id)));
foreach (string id in ZoneInfoDB.GetAvailableIds ()) {
systemTimeZones.Add (ZoneInfoDB.GetTimeZone (id));
}
#elif LIBC
string[] continents = new string [] {"Africa", "America", "Antarctica", "Arctic", "Asia", "Atlantic", "Brazil", "Canada", "Chile", "Europe", "Indian", "Mexico", "Mideast", "Pacific", "US"};
foreach (string continent in continents) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册