Skip to content

Instantly share code, notes, and snippets.

@chamook
Created November 29, 2016 08:36
Show Gist options
  • Select an option

  • Save chamook/9cc5bfd02c381b4ea3836faafc61ddf5 to your computer and use it in GitHub Desktop.

Select an option

Save chamook/9cc5bfd02c381b4ea3836faafc61ddf5 to your computer and use it in GitHub Desktop.
private static Thing MakeThing(string thingName, int thingVal, string thirdParam)
{
if (thingName == null)
throw new ArgumentNullException(nameof(thingName));
if (thirdParam == null)
throw new ArgumentNullException(nameof(thirdParam));
return new Thing(thingName, thingVal, thirdParam);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment