Scope for Members

Question
What’s the best way to apply scope to type members?

Solution
Use the internal access modifier when a member will not be invoked from other assemblies. Mark members private when they won’t be invoked by other types in the current assembly.

Comments
Don’t make fields, properties, or methods public unless necessary.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s