public int indexOfMsgVariables(IXmlBBase el) { return ((System.Collections.IList) allMsgVariables()).IndexOf (el); }