位域与枚举
摘要:今天在看C#的文件管理,看到了File.SetAttributes(this.textBox1.Text,MyAttributes|FileAttributes.System);从格式上说File.SetAttributes(string path,FileAttributes fileAttributes),为什么多一个“|”运算符呢? MSDN上给了一个例子:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->usingSystem;
阅读全文
posted @
2008-11-21 15:44
Lazyloon
阅读(1216)
推荐(0)