Beispiel #1
0
        public static Template CombineTemplates(IEnumerable <Template> Templates)
        {
            var tmp = new Template();

            tmp.Name = "Combined Template: ";
            foreach (var tmpl in Templates)
            {
                tmp.Name = tmpl.Name + tmpl.Name + ", ";
                foreach (var variable in tmpl.TemplateVariables)
                {
                    if (!tmp.TemplateVariables.Contains(variable))
                    {
                        tmp.AddTemplateVariable(variable);
                    }
                }
            }
            return(tmp);
        }