public int indexOfStateMachines(IXmlBBase el) { return ((System.Collections.IList) allStateMachines()).IndexOf (el); }