public DrillActionContainer FindDrillActionContainer(IList <DrillActionContainer> actionChain, String memberId) { if (actionChain == null) { return(null); } foreach (DrillActionContainer container in actionChain) { if (container.MemberUniqueName == memberId) { return(container); } DrillActionContainer child = FindDrillActionContainer(container.Children, memberId); if (child != null) { return(child); } } return(null); }