New Features–Out Variables in C# 7.0
Prior to C# 7.0, For out keyword, we need to define that variable earlier and then we were able to pass that variable as out reference arguments. But now with C# 7.0, You don’t need to declare the variable but you can use the variable which you have used in arguments. Following is a code