"Nameof Operator"

class User {
	public string Name { get; }
	
	public User(string name) {
		if (name == null) throw new ArgumentNullException(nameof(name)); // If we rename name later this will not compile (which is good)
		Name = name;
	}
}


Code snippet taken from "Two Decades of C#: A Reference - C# 5 and C# 6".