We already had the ability to create a short anonymous methods that assigned to a variable in C#. We could achieve this using delegate keyword or using Action and Func. But with release of C# 7 local functions got introduced. It has some similarity to lambdas but also some major differences. Local functions are functions …
C# 7
C# in parameter modifier
In version 7.2 of C# language, now we can pass an argument into a method without allowing the method to mutate the value. But the main reason this keyword is added to the language is not mutability. It was added for optimization and the need to pass a value type in a method by reference …