Exemplo n.º 1
0
        ///<summary>Finds a model variable in this collection of the specified type</summary>
        public virtual ModelVariables       FindType(Type type)
        {
            //Find a matching variable, of the specified type
            ModelVariables found = new ModelVariables();

            foreach (ModelVariable variable in this)
            {
                if (variable.Type == type)
                {
                    found.Add(variable);
                }
            }

            return(found);
        }