2011年1月20日

枚举

摘要: namespace ConsoleApplication2{ enum orientation : byte { north=1, south=2, east=3, west=4 } class Program { static void Main(string[] args) { byte directionByte; string directionString; orientation myDirection = orientation.north; Console.WriteLine("myDirection={0}", myDirection); directionByte = (b 阅读全文

posted @ 2011-01-20 08:16 i617 阅读(467) 评论(0) 推荐(0) 编辑

导航