O'Reilly logo

Applied Microsoft® .NET Framework Programming by Jeffrey Richter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Accessibility Modifiers and Predefined Attributes

In this section, I’ll summarize the accessibility modifiers and predefined attributes that can be placed on types, fields, and methods (including properties and events). The accessibility modifiers indicate which types and members can be legally referenced from code. The predefined attributes fine-tune this accessibility and allow you to change a member’s semantics.

The CLR defines the set of possible accessibility modifiers, but each programming language chooses the syntax and term it wants to use to expose the modifier to developers. For example, the CLR uses the term Assembly to indicate that a member is accessible to any code within the same assembly. However, C# and Visual Basic call it internal ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required