CA1500 vs. SA1309 - Which one wins?

后端 未结 6 1066
野性不改
野性不改 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 12:53

    Here is my usual solution:

    class SomeClass
    {
        int SomeField{get;set;}
    
        public SomeClass(int someField)
        {
            SomeField = someField;
        }
    }
    

提交回复
热议问题