C# Compiler should give warning but doesn't?

后端 未结 7 1152
北恋
北恋 2020-12-03 14:05

Someone on my team tried fixing a \'variable not used\' warning in an empty catch clause.

try { ... } catch (Exception ex) { }

-> gives a w

7条回答
  •  借酒劲吻你
    2020-12-03 14:38

    I think the person that answers this will need some insight into how the compiler works. However, something like FxCop would probably catch this.

提交回复
热议问题