Created
February 25, 2015 14:59
-
-
Save ufcpp/6ffd5eebbf54781a3ac0 to your computer and use it in GitHub Desktop.
syntax change - Exception Filters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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