I have a simple method:
public void SomeMethod(string str) { if (str == null) { throw new ArgumentNullException(nameof(str));