Saturday, October 16, 2010

C#: Quick Reference – Access Modifiers

C# Access Modifiers
Declared AccessibilityDescription
publicAccess is not restricted.
protectedAccess is limited to the containing class or types derived from the containing class.
internalAccess is limited to the current assembly.
protected internalAccess is limited to the current assembly or types derived from the containing class.
privateAccess is limited to the containing type.
Declared Accessibility Rules
ParentParent Default
Accessibility
Allowed
Declared
Accessibility
of the
Parent
Member
Default Accessibility
Allowed
Declared
Accessibility
of the
Member
namespacepublicNoneinternalinternal
public
enumpublicNonepublicNone
classinternalAllprivateAll
interfaceinternalinternal
public
publicNone
structinternalinternal
public
privateinternal
public
private
constructorprotectedAll
fieldprivateAll
delegateinternalinternal
public

Sunday, March 28, 2010

A Great Way to Learn Technology: Review Books

I recently wrote an article here about what I think is a great way to learn new technologies. As programmers we all know how important it is to be up to date the happenings in the fast evolving tech world. I hope this idea will help my fellow programmers.