Example #1
0
        public Mechanism[] GetMechanisms()
        {
            ElementList elements = SelectElements("mechanism");

            var items = new Mechanism[elements.Count];
            int i = 0;
            foreach (Element e in elements)
            {
                items[i] = (Mechanism) e;
                i++;
            }
            return items;
        }
Example #2
0
        public Mechanism[] GetMechanisms()
        {
            ElementList elements = SelectElements("mechanism");

            var items = new Mechanism[elements.Count];
            int i     = 0;

            foreach (Element e in elements)
            {
                items[i] = (Mechanism)e;
                i++;
            }
            return(items);
        }