From two enums ,what is the way to apply LINQ to get pairs
like
{Red,Car},{Red,Bike},{Green,Car},{Green,Bike},...
public enum Color
{
Red,Green,Blue
}
public enum Vehicle
{
Car,Bike
}
can i use something like
var query = from c in Enum.GetValues(typeof(Color)).AsQueryable()
from c in Enum.GetValues(typeof(Vehicle)).AsQueryable()
select new {..What to fill here?.. }