Get values from an Enum class and perform checking - C#