From 76554a50a45c687518cba417ed03822b9923dc15 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Sun, 1 Jan 2017 21:27:26 -0500 Subject: [PATCH] Update ScanResult.cs --- src/ServiceStack.Redis/ScanResult.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ServiceStack.Redis/ScanResult.cs b/src/ServiceStack.Redis/ScanResult.cs index 2666856c..8a2e3248 100644 --- a/src/ServiceStack.Redis/ScanResult.cs +++ b/src/ServiceStack.Redis/ScanResult.cs @@ -16,7 +16,9 @@ public static List AsStrings(this ScanResult result) for (var i = 0; i < result.Results.Count; i += 2) { var key = result.Results[i]; - var score = result.Results[i + 1].ToDouble(); + var score = double.Parse(result.Results[i + 1].FromUtf8Bytes(), + NumberStyles.Float, + CultureInfo.InvariantCulture); to[key.FromUtf8Bytes()] = score; } return to; @@ -34,4 +36,4 @@ public static List AsStrings(this ScanResult result) return to; } } -} \ No newline at end of file +}