Exemple #1
0
        public XsdElement FindOrCreateElement(string name)
        {
            var element = elements.FirstOrDefault(x => x.Name == name);

            if (element == null)
            {
                element = new XsdElement(name);

                elements.Add(element);
            }

            return(element);
        }
Exemple #2
0
        public XsdElement FindOrCreateElement(string name)
        {
            if (elements.ContainsKey(name))
            {
                return(elements[name]);
            }

            var element = new XsdElement(name);

            elements.Add(name, element);

            return(element);
        }