Skip to content

Instantly share code, notes, and snippets.

@ufcpp
Created February 25, 2015 14:59
Show Gist options
  • Save ufcpp/6ffd5eebbf54781a3ac0 to your computer and use it in GitHub Desktop.
Save ufcpp/6ffd5eebbf54781a3ac0 to your computer and use it in GitHub Desktop.
syntax change - Exception Filters
try
{
}
catch (ArgumentException e) when (e.ParamName == "x") // 前まで if だった
{
// パラメーター名が x の時だけはエラー無視
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment