From 7f8f0b04f7b217caf5bbd8d4b5aa5eb30e28044b Mon Sep 17 00:00:00 2001 From: Krzysztof Nozderko Date: Wed, 28 Feb 2024 13:48:04 +0100 Subject: [PATCH] fix getting enum values on .net framework --- Snowflake.Data/Core/Session/ChangedSessionBehavior.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Snowflake.Data/Core/Session/ChangedSessionBehavior.cs b/Snowflake.Data/Core/Session/ChangedSessionBehavior.cs index 227d9b1a6..752096f22 100644 --- a/Snowflake.Data/Core/Session/ChangedSessionBehavior.cs +++ b/Snowflake.Data/Core/Session/ChangedSessionBehavior.cs @@ -15,7 +15,8 @@ internal static class ChangedSessionBehaviorExtensions { public static List StringValues() { - return Enum.GetValues() + return Enum.GetValues(typeof(ChangedSessionBehavior)) + .Cast() .Where(e => e == ChangedSessionBehavior.OriginalPool) // currently we support only OriginalPool case .Select(b => b.ToString()) .ToList();