using System;try { //небезопасная операция}catch (ArgumentException e) //отбор: when (e.InnerException != null) {}