using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _02EnumTest
{
class Program
{
static void Main(string[] args)
{
CardDeckSetting ops = CardDeckSetting.Animation | CardDeckSetting.FancyNumbers | CardDeckSetting.SingleDeck;
EnumSource es = new EnumSource();
Console.WriteLine("==========位标志判断===========");
es.SetOptions(ops);
for (int i = 0; i < 4; i++)
{
Console.WriteLine(es[i]);//使用索引器
}
Console.WriteLine();
Console.WriteLine("=========字符串转换位枚举============");
Console.WriteLine(es.StringToEnum("SingleDeck"));
Console.WriteLine();
Console.WriteLine("=========使用Enum.GetNames()遍历所有的枚举对象============");
es.ShowEnumAll();
Console.ReadKey();
}
}
}