public object ToValue(Type propertyType, XmlBool xmlValue) { if (propertyType == typeof(string)) { return(xmlValue.Value == true ? "true" : "false"); } else { return(xmlValue.Value); } }
public string ToBool(XmlBool xmlValue) { var value = xmlValue.Value == true ? "true" : "false"; return(this.xmlService.GetNode(xmlValue.NodeName, value)); }