From 9e697812cf5bc566c94f083b05acac275a7479ba Mon Sep 17 00:00:00 2001 From: Mustapha Jaber Date: Mon, 18 Apr 2016 16:33:44 -0700 Subject: [PATCH] Handle casting into Int64 --- EdgeA11yTools.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/EdgeA11yTools.cs b/EdgeA11yTools.cs index fe8f208..20b4011 100644 --- a/EdgeA11yTools.cs +++ b/EdgeA11yTools.cs @@ -330,6 +330,12 @@ namespace Microsoft.Edge.A11y } catch { } + try + { + return (Int64)o; + } + catch { } + try { return (double)o; @@ -345,4 +351,4 @@ namespace Microsoft.Edge.A11y throw new InvalidCastException("Cannot parse to int, double, or string"); } } -} \ No newline at end of file +}