internal string GetExplicitBoolValueFor(bool value) { string[] split = ExplicitBoolTrueFalseValues.Split(';'); if (value) { return(split[0]); } else { return(split[1]); } }
public void DoValidityTest() { if (ExplicitBoolTrueFalseValues != null) { if (ExplicitBoolTrueFalseValues.Count(i => i == ';') != 1) { throw new Exception("ExplicitBoolTrueFalseValues definition must containt exactly one \";\" delimiter."); } } if (XmlMapping != null) { if (XmlMapping.StartsWith("/") || XmlMapping.EndsWith("/")) { throw new Exception("XmlMaping cannot start or end with slash."); } } if (IsXmlAttribute && (IsXmlMappingToSelf() || IsXmlMappingWithHierarchy())) { throw new Exception("Cannot be IsXmlAttribute set to true and XmlMapping with self or hierarchy mapping."); } }