CA1500 vs. SA1309 - Which one wins?

后端 未结 6 1131
野性不改
野性不改 2021-01-01 12:36

I\'ll prefix by saying that I understand that both Code Analysis and StyleCop are meant as guidelines, and many people chose to ignore these anyway. But having said that, I

6条回答
  •  爱一瞬间的悲伤
    2021-01-01 13:12

    Based on what I've seen from Microsoft themselves, I say CA1500 wins.

    If you look at the BCL, most of the code prefixes local fields with an underscore.

提交回复
热议问题