The old question is, if you have the flexibility to change transfers to power 2, for example. 1,2,4,8 ... you can use a bitwise operation to enumerate.
public class CarModel
{
public Cars MyCar
{
get { return Cars.Audi | Cars.VW | Cars.Cadalic;}
set { ; }
}
[Flags]
public enum Cars
{
Audi=1,
Bmw=2,
VW=4,
Cadalic=8
}
}
source
share