"Throw Expressions Example A"

User _currentUser;

public User CurrentUser {
	get {
		return _currentUser;
	}
	set {
		_currentUser = value ?? throw new ArgumentNullException(nameof(value));
	}
}


Code snippet taken from "Two Decades of C#: A Reference - C# 7".