Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Last active October 16, 2019 01:15
Embed
What would you like to do?
public void DoFoo(int input) {
if (input != 42) {
throw new ArgumentOutOfRangeException(nameof(input), "DoFoo cannot be invoked with a non-42 value");
}
// ...
}
public void DoBar(int input) {
if (input != 42) {
throw new ArgumentOutOfRangeException(nameof(input), "DoBar cannot be invoked with a non-42 value");
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment