关于public、internal、private、protected介绍



public:         所属类的成员以及非所属类的成员都可以访问;

internal:      当前程序集可以访问;

private:       只有所属类的成员才可以访问;

protected:   所属类或派生自所属类的类型可以访问;

猜你喜欢

转载自blog.csdn.net/t15032286291/article/details/77200330
今日推荐