How to put enum values in a list [SOLVED]

Hi, I'm quite new to C# and I'm still learning, but I'm tasked to debug a piece of code using C#, I managed to fix it but I have like a super long if statement that contains the same thing, except for the values of enum. I came from Python and usually, I'd just declare a list like
my_list = [1, 2]
, but from what I found, I just need to use Enum.GetValues().
Was this page helpful?