Tag Archives: C# 7.2

What is private protected access modifier

By | November 22, 2017

Finally, with C# 7.2 we get a new compound access modifier: private protected indicates that a member may be accessed by derived classes that are declared in the same assembly. While protected internal allows access by derived classes or classes that are in the same assembly, private protected limits access to derived types declared in… Read More »

What is an in parameter in C#

By | November 22, 2017

C# 7.2 adds the in keyword to complement the existing ref and out keywords when you write a method that passes arguments by reference. The in keyword specifies that you are passing the parameter by reference and the called method does not modify the value passed to it. This addition provides a full vocabulary to… Read More »