What can I do with a protected/private static variable?

前端 未结 7 2242
悲&欢浪女
悲&欢浪女 2021-01-01 18:00

I see I can write :

protected static

in my C# class (in my case, an aspx.cs). As well as :

private static

7条回答
  •  说谎
    说谎 (楼主)
    2021-01-01 18:17

    static does not mean it is accessible everywhere. You still need protected/private to define visibility.

提交回复
热议问题