摘要: 按位枚举是为标记相互包含而使用的,每个成员被赋给一个唯一的按位值。 用按位或运算符(|)来组合按位标记。用按位和运算符(&)来确定一个标记的存在。 从组合状态中去掉一个元素用& (~)。 示例代码: 1using System; 2using System.Collections.Generic; 3using System.Text; 4 5namespace ... 阅读全文
posted @ 2007-10-08 16:13 sunfishlu 阅读(1583) 评论(0) 推荐(0) 编辑