using System;
using System.Linq;
public enum Fruits
{
Apple = 0,
Banana = 1,
Orange = 2
}
Enum.GetNames(typeof(Fruits)).Contains("apple");