NameOf keyword has been introduced in c# 6.0. NameOf keyword will take the variable name and changes into string while compilation.
Category: c# internals
String Interpolation and it’s internals
You can download the code from here Source code String Interpolation is introduced in C# 6.0 . String Interpolation is the feature to insert value(s) into the string. Confused? Lets start with string formatter Before c#6.0, we used to write something like this string log = string.Format("Values for the sum are value1:{0} and Value2:{1}", value1, value2); …