Backend line

nameof Operator

Compile-time names, refactoring safety, traps

1 sections

Start: The nameof Operator

Foundational 1

  1. The nameof Operatornameof(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…, not read