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); }
public XsdElement FindOrCreateElement(string name) { if (elements.ContainsKey(name)) { return(elements[name]); } var element = new XsdElement(name); elements.Add(name, element); return(element); }