Google
 

Saturday, June 02, 2007

Access Scope in C#

  1. private        : can be called only by the objects in the same type
  2. protected    : can be called by objects the derived type, no matter in the same assembly or not
  3. public          : can be called by all code
  4. internal       : can be called by the code in the same assembly
  5. protected internal : same as protected
  6. internal protected : not support in C# but in IL it meas the derived type in the same assembly can call the code

--
Happy day, happy life!

No comments: