public override void Delete() { base.Delete(); if (Links != null) { Links.ForEach(l => { if (!l.Deleted) { l.Delete(); } }); } if (ParentTrap != null && !ParentTrap.Deleted) { ParentTrap.Delete(); } }
public override void Delete() { base.Delete(); if (Links != null) { for (var index = 0; index < Links.Count; index++) { var l = Links[index]; if (!l.Deleted) { l.Delete(); } } } if (ParentTrap != null && !ParentTrap.Deleted) { ParentTrap.Delete(); } }