Skip to content

Instantly share code, notes, and snippets.

@IntegerMan

IntegerMan/FooBar.cs

Last active Oct 16, 2019
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
You can’t perform that action at this time.