@nativescript/windows 0.1.0-alpha.60 → 0.1.0-alpha.61
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.
|
@@ -256,8 +256,9 @@ public static partial class Bridge
|
|
|
256
256
|
{
|
|
257
257
|
if (value is Task || value is ValueTask) return true;
|
|
258
258
|
if (t.IsGenericType && t.GetGenericTypeDefinition() == typeof(ValueTask<>)) return true;
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
if ((t.FullName ?? "").StartsWith("Windows.Foundation.IAsync", StringComparison.Ordinal)) return true;
|
|
260
|
+
foreach (var iface in t.GetInterfaces())
|
|
261
|
+
if ((iface.FullName ?? "").StartsWith("Windows.Foundation.IAsync", StringComparison.Ordinal)) return true;
|
|
261
262
|
return t.GetMethod("GetAwaiter",
|
|
262
263
|
BindingFlags.Public | BindingFlags.Instance,
|
|
263
264
|
null, Type.EmptyTypes, null) is not null;
|