The nameof Operator
2 sectionsRapid overview
The nameof Operator
TL;DR
nameof(x) (C# 6) returns the simple, unqualified name of a variable, type, member or namespace as a compile-time constant string: nameof(order.Total) is "Total", nameof(List<int>) is "List". The expression is never evaluated, so there is no…
Read →How it works
Q: What does nameof do?
Read →