@nativescript/windows 0.1.0-alpha.59 → 0.1.0-alpha.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -232,6 +232,12 @@ public static partial class Bridge
|
|
|
232
232
|
|| t == typeof(TimeSpan) || t == typeof(Guid))
|
|
233
233
|
return DispatchResult.Primitive(value, t);
|
|
234
234
|
|
|
235
|
+
if (t.IsEnum)
|
|
236
|
+
{
|
|
237
|
+
var ut = Enum.GetUnderlyingType(t);
|
|
238
|
+
return DispatchResult.Primitive(Convert.ChangeType(value, ut), ut);
|
|
239
|
+
}
|
|
240
|
+
|
|
235
241
|
if (t.IsArray || (t != typeof(string) && value is IEnumerable))
|
|
236
242
|
{
|
|
237
243
|
try { return DispatchResult.Collection((IEnumerable)value); }
|