Quantcast
Channel: Daily .NET Tips » What’s New in C#6.0
Viewing all articles
Browse latest Browse all 9

Using nameof Operator in C# 6.0

$
0
0
C# 6.0 introduced a new operator named, nameof  that accepts the name of code element and returns a string literal of the same element.  The nameof operator can take as a parameter like class name and its all members like method, variables, properties and return the string literal.  This avoids having hardcoded strings to be [...]

Viewing all articles
Browse latest Browse all 9

Trending Articles