Skip to content

Instantly share code, notes, and snippets.

@wonderful-panda
Created February 23, 2012 06:13
Show Gist options
  • Save wonderful-panda/1891007 to your computer and use it in GitHub Desktop.
Save wonderful-panda/1891007 to your computer and use it in GitHub Desktop.
public static bool Included<T>(T target, params T[] values)
{
return values.Contains(target);
}
If (foo.Included(hoge, fuga, piyo))
{
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment