To convert Enum to Enumerable ,I use
public enum Flags
{
Trivial=1,
Minor,
Major,
Critical
}
IEnumerable<int> n =
Enumerable.Range((int)Flags.Trivial, (int)Flags.Critical).OfType<int>();
Just I want to know whether it is a valid conversion or not (code is working).