【发布时间】:2013-12-08 13:33:50
【问题描述】:
我经常读到这样的代码:
System.Diagnostics.DebuggableAttribute.DebuggingModes.DisableOptimizations | System.Diagnostics.DebuggableAttribute.DebuggingModes.EnableEditAndContinue | System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | System.Diagnostics.DebuggableAttribute.DebuggingModes.Default)
在C#程序中,有时参数是这样的,这是什么意思?
我从谷歌搜索过,但没有有价值的答案,'|'无法在 Google 引擎中进行属性解析,可能是我搜索时使用了错误的方式。
【问题讨论】:
-
何时 |用作 ||它是 OR 运算符,在这里它用作枚举值
-
见msdn
标签: c#