Saturday 24 September 2011

Accessibility In c#.net


Some methods and properties are meant to be called or accessed from code outside your class or struct, known as client code. Other methods and properties might be only for use in the class or struct itself. It is important to limit the accessibility of your code so that only the intended client code can reach it. You specify how accessible your types and their members are to client code by using the access modifiers public, protected, internal, protected internal, and private.

No comments:

Post a Comment

Please Give Your Valuable Comments on this Topic

Archives