public int indexOfStates(IXmlBBase el) { return ((System.Collections.IList) allStates()).IndexOf (el); }