摘要:
标记枚举是为标记相互包含而使用的,每个成员被赋给一个唯一的按位值。 用按位或运算符(|)来组合按位标记。用按位和运算符(&)来确定一个标记的存在。 从组合状态中去掉一个元素用& (~)。示例代码:1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Text;45namespaceConsoleApplication1... 阅读全文
posted @ 2010-09-18 12:58
shhqy82
阅读(1354)
评论(0)
推荐(2)
浙公网安备 33010602011771号