DotNET Schools

Blogs & Tutorials for Microsoft.NET and Leading web Technologies

C# 7.2 - In Parameter And Performance

In C# 7.2, “in parameter” has been introduced which allows passing read-only reference of a variable. Before C# 7.2, we used “ref” and “out” keywords for passing the references of a variable. “Out” is meant for output only whereas ‘ref’ is meant for input and output both. However, if we had to pass a read-only reference, i.e., passing a variable as input only, then there was no direct option for that. So, in C# 7.2, “in parameter” has been introduced for this purpose. Read More >>


Learn C # 7.x (articles on C# 7.0, C# 7.1 & 7.2 new features)

  



Learn C# 7.0, C# 7.1 & C# 7.2 new features by the collection of articles written by Banketeshvar Narayan