Get values from an Enum class and perform checking

Hi, I am trying to get the values from an enum and perform a conditioning checking with the values retrieved. I was told that the way I am trying to check is fine but the way I am checking it is incorrect. Here's an example of what I am trying to get. It was hinted that the if statement is incorrect.
using System;

namespace MyApplication
{
  class Program
  {
    enum BikeType
    {
      Road,
      Mountain
    }
    static void Main(string[] args)
    {
      var bikeTypeValues = Enum.GetValues(typeof(BikeType));
      
      if (ModelState.IsValid && bike.BikeType.Equals(bikeTypeValues) && bike.File != null) {
          // code here
      }
      
      Console.WriteLine(bikeTypeValues);
    }
  }
}
Was this page helpful?