且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

C#静态方法/功能改变按钮背面的颜色

更新时间:2023-02-09 14:58:01

为什么要使用静态方法?静态方法只能使用静态属性/字段。无法访问实例属性/字段。有很多方法可以做到这一点。所以引入上下文会更好。

Why do you want to use static method? Static method can use only static properties/fields. There is not access to instance properties/fields. There are many methods how to do it. So it would be better to introduce context.