摘要: string idTag = "123-890";string theTag = idTag;2个变量将指向同一个对象。 阅读全文
posted @ 2011-09-04 09:26 jacky_j2ee 阅读(117) 评论(0) 推荐(0)
摘要: 方式一public enum Color : long{ Red, Green = 50, Blue}Red的值为0 Green的值为50 Blue的值为51 且都为long类型(不加类型,默认为int类型)方式二using System;namespace Sample{ class Sample { [Flags] public enum AccessFlag { NoAccess = 0x0, ReadAccess = 0x1, WriteAccess = 0x2, ExecuteAccess = 0x4 } static void Main() { ... 阅读全文
posted @ 2011-09-04 09:12 jacky_j2ee 阅读(144) 评论(0) 推荐(0)