Пример #1
0
        private TreeStructuredTypeBaseConfigElement GetTreeStructuredTypeConfigElementByName(string elementName)
        {
            TreeStructuredTypeBaseConfigElement result = null;

            if (elementName == this.GetEntityTagName())
            {
                result = new TreeStructuredTypeEntityConfigElement();
            }
            else if (elementName == this.GetEntityGroupTagName())
            {
                result = new TreeStructuredTypeGroupConfigElement();
            }
            else if (elementName == this.GetEntityNamedGroupTagName())
            {
                result = new TreeStructuredTypeNamedGroupConfigElement();
            }

            return(result);
        }
		private TreeStructuredTypeBaseConfigElement GetTreeStructuredTypeConfigElementByName(string elementName)
		{
			TreeStructuredTypeBaseConfigElement result = null;

			if (elementName == this.GetEntityTagName())
			{
				result = new TreeStructuredTypeEntityConfigElement();
			}
			else if (elementName == this.GetEntityGroupTagName())
			{
				result = new TreeStructuredTypeGroupConfigElement();
			}
			else if (elementName == this.GetEntityNamedGroupTagName())
			{
				result = new TreeStructuredTypeNamedGroupConfigElement();
			}

			return result;
		}