Skip to content

Commit

Permalink
fix getting enum values on .net framework
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-knozderko committed Feb 28, 2024
1 parent 0c0e110 commit 7f8f0b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Snowflake.Data/Core/Session/ChangedSessionBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ internal static class ChangedSessionBehaviorExtensions
{
public static List<string> StringValues()
{
return Enum.GetValues<ChangedSessionBehavior>()
return Enum.GetValues(typeof(ChangedSessionBehavior))
.Cast<ChangedSessionBehavior>()
.Where(e => e == ChangedSessionBehavior.OriginalPool) // currently we support only OriginalPool case
.Select(b => b.ToString())
.ToList();
Expand Down

0 comments on commit 7f8f0b0

Please sign in to comment.