I have a Enum like this:
public enum PromotionTypes { Unspecified = 0, InternalEvent = 1, ExternalEvent = 2, GeneralMailing = 3, VisitBas
Try this:
IEnumerable values = Enum.GetValues(typeof(PromotionTypes)) .OfType() .Select(s => (int)s); if(values.Contains(yournumber)) { //... }