Access rights
suggest change// static: callable without an instance of the class
public static void MyMethod()
// virtual: can be overridden in a derived class
public virtual void MyMethod()
// internal: accessible only within the current assembly
internal void MyMethod()
// private: accessible only within the same class
private void MyMethod()
// public: accessible from any class and assembly
public void MyMethod()
// protected: accessible in the containing class and types derived from it
protected void MyMethod()
// protected internal: accessible in the current assembly or in types derived from the containing class
protected internal void MyMethod()
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents