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