SA1400 : CSharp.Maintainability : The class must have an access modifier.

今天另一個要處理的StyleCop 警告是
SA1400 : CSharp.Maintainability : The class must have an access modifier.

SA1400 : CSharp.Maintainability : The class must have an access modifier.

 

原來在原本的Class Template 是沒有定義 Access Modifier的

SA1400 : CSharp.Maintainability : The class must have an access modifier.

<strong>class Get_Text_CL</strong>
    {
    }

解決方法
只要在Class的開頭加上適當的 Access Modifer 便可以了
E.G. Public, Protected, Private..等等

E.G.

<strong>public class Get_Text_CL</strong>
    {
    }

終於解決了 所有的警告..
StyleCop All Fixed
Happy Coding

Leave a Reply