static void Remove(BcdObject o, uint t) { if (!o.DeleteElement(t)) { throw new InvalidOperationException(); } }