CCMEngine.ConfigurationFile.ParseSwitchStatementBehavior C# (CSharp) Метод

ParseSwitchStatementBehavior() приватный Метод

private ParseSwitchStatementBehavior ( XmlDocument doc ) : void
doc System.Xml.XmlDocument
Результат void
        private void ParseSwitchStatementBehavior(XmlDocument doc)
        {
            XmlElement recursive = (XmlElement)doc.SelectSingleNode("/ccm/switchStatementBehavior");

            if (null != recursive)
            {
                string setting = recursive.InnerText;

                if (setting.Equals("TraditionalInclude", StringComparison.InvariantCultureIgnoreCase))
                    this.switchBehavior = ParserSwitchBehavior.TraditionalInclude;
                else if (setting.Equals("IgnoreCases", StringComparison.InvariantCultureIgnoreCase))
                    this.switchBehavior = ParserSwitchBehavior.IgnoreCases;
                else
                    throw new InvalidOperationException(string.Format("Unknown switchStatementBehavior: {0}", setting));
            }
        }