Way to access class member
-
-
public can access by all class, internal can access by it's namespace, protected can access by it's inherit class. How to access a member only by special base class or a class which implement the special interface? :confused: === Game is power! ===
Internal code can be accessed only from the same assembly, not namespace. As far as I know, there's no way to do what you want to. protected is useful if only a derived class can call the method. Otherwise make it public and trust your caller. -- LuisR
Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!
The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
-
public can access by all class, internal can access by it's namespace, protected can access by it's inherit class. How to access a member only by special base class or a class which implement the special interface? :confused: === Game is power! ===
Impliment a containment or Nested class or a Has-a relation.:-D Sreejith Nair [ My Articles ]