It’s not possible in C#.
Just for the sake of completeness, this is supported in IL (family and assembly access modifier).
More Related Contents:
- In C#, what is the difference between public, private, protected, and having no access modifier?
- What are the default access modifiers in C#?
- What is the difference between ‘protected’ and ‘protected internal’?
- Why can’t we change access modifier while overriding methods in C#?
- What is the equivalent of Java’s final in C#?
- Are there any reasons to use private properties in C#?
- Why can’t I access C# protected members except like this?
- Practical uses for the “internal” keyword in C#
- Internal vs. Private Access Modifiers
- Why can’t I have protected interface members?
- What is the meaning of the planned “private protected” C# access modifier?
- What is the use case for the (C# 7.2) “private protected” modifier?
- Windows 8/10 and PDF support: Are there APIs? [closed]
- How to save leap date ’02/29/2006′ to sql server database? [duplicate]
- Creating a blocking Queue in .NET?
- How to get the current user in ASP.NET MVC
- HttpWebRequest using Basic authentication
- LINQ Contains Case Insensitive
- What’s the difference between Bitmap.Clone() and new Bitmap(Bitmap)?
- How do I build a DataTemplate in c# code?
- What is the use of the ArraySegment class?
- Struggling trying to get cookie out of response with HttpClient in .net 4.5
- “async Task then await Task” vs “Task then return task” [duplicate]
- How do I display progress during a busy loop?
- Single MSI to install correct 32 or 64 bit c# application
- .NET (3.5) formats times using dots instead of colons as TimeSeparator for it-IT culture?
- Exporting datagridview to csv file
- Lambda Expression for join
- Roslyn Get Method Declaration from InvocationExpression
- removing the empty gray space in datagrid in c#