Here are all access modifiers in Venn diagrams, from more limiting to more promiscuous:
private
:
private protected
: – added in C# 7.2
internal
:
protected
:
protected internal
:
public
:
More Related Contents:
- What is the use case for the (C# 7.2) “private protected” modifier?
- What does the => operator mean in a property?
- In C#, what is the difference between public, private, protected, and having no access modifier?
- What are the default access modifiers in C#?
- What does question mark and dot operator ?. mean in C# 6.0?
- What is the difference between ‘protected’ and ‘protected internal’?
- How to enable C# 6.0 feature in Visual Studio 2013?
- How to use the ternary operator inside an interpolated string?
- C# 6.0 Features Not Working with Visual Studio 2015
- Why can’t we change access modifier while overriding methods in C#?
- What is the equivalent of Java’s final in C#?
- What is the difference between getter-only auto properties and expression body properties?
- Are there any reasons to use private properties in C#?
- How do I use the C#6 “Using static” feature?
- Internal vs. Private Access Modifiers
- Why can’t I have protected interface members?
- String Interpolation with format variable
- Await in catch block
- Automated property with getter only, can be set, why?
- C#6.0 string interpolation localization
- How to implement INotifyPropertyChanged in C# 6.0?
- Primary constructors no longer compile in VS2015
- What does the => operator mean in a property or method?
- Long string interpolation lines in C#6
- Formatting a string into columns using String Interpolation
- How to upgrade msbuild to C# 6?
- What is the final format for string interpolation in VS 2015?
- C# 6.0 Null Propagation Operator & Property Assignment
- Error CS1056: Unexpected character ‘$’ running the msbuild on a tfs continuous integration process
- C# 6.0 Support in Visual Studio 2012