-
-
Save smoogipoo/612287ba15e37c0ef1950520fe8b2b96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
public class C { | |
public void M(object obj) { | |
if (obj == null) | |
throw new ArgumentNullException("obj"); | |
} | |
public void N(object obj) { | |
if (obj == null) | |
throw new ArgumentNullException(nameof(obj)); | |
} | |
public void O(object obj) { | |
ArgumentNullException.ThrowIfNull(obj); | |
} | |
} |
Author
smoogipoo
commented
Dec 22, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment