From 802932cdd7dc6bce5eb5988d12400ce7d74d6bf0 Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Thu, 12 Jan 2017 14:16:48 -0800 Subject: [PATCH] Fix enum parser --- src/Podsync/Services/Storage/RedisStorage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Podsync/Services/Storage/RedisStorage.cs b/src/Podsync/Services/Storage/RedisStorage.cs index 91a7232..581a7c1 100644 --- a/src/Podsync/Services/Storage/RedisStorage.cs +++ b/src/Podsync/Services/Storage/RedisStorage.cs @@ -182,7 +182,7 @@ namespace Podsync.Services.Storage var propertyType = typeof(P); if (propertyType.GetTypeInfo().IsEnum) { - value = (P)Enum.Parse(propertyType, entry.Value); + value = (P)Enum.Parse(propertyType, entry.Value, true); } else {