private void GetBoolSetting(CsrSection section, string setting, ref bool val) { try { for (int i = 0; i < section.Settings.Count; i++) { TypeElement element = section.Settings[i]; if (String.Compare(element.Key, setting, true) == 0) { if (!TryParseTrueFalse(element.Value, ref val)) { Output.Warning(CsrResources.ErrorParsingBooleanInConfig(element.Value, element.Key)); } return; } } } catch (ConfigurationException e) { Output.Warning(e.Message); } }
public void Add(TypeElement element) { this.BaseAdd(element); }