新版本的变更 / C# 6.0

using System;

try {
    //unsafe operation
}
catch (ArgumentException e)
    //filter:
    when (e.InnerException != null) {

}