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);
}
}
}
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);
}
}
}