public bool ToBool(bool aDefault) { bool defaultApplied = false; bool ret = XmlSettingsValueConverter <bool> .Convert(this, aDefault, out defaultApplied); // if (defaultApplied) { string valueAsString = ToString().ToLower().Trim(); // switch (valueAsString) { case "true": case "yes": case "1": ret = true; break; case "false": case "no": case "0": ret = false; break; default: ret = aDefault; break; } } // return(ret); }
public Size ToSize(Size aDefault) { Size ret = XmlSettingsValueConverter <Size> .Convert(this, aDefault); return(ret); }
public Point ToPoint(Point aDefault) { Point ret = XmlSettingsValueConverter <Point> .Convert(this, aDefault); return(ret); }
public string ToString(string aDefault) { string ret = XmlSettingsValueConverter <string> .Convert(this, aDefault); return(ret); }
public long ToLong(long aDefault) { long ret = XmlSettingsValueConverter <long> .Convert(this, aDefault); return(ret); }
public uint ToUint(uint aDefault) { uint ret = XmlSettingsValueConverter <uint> .Convert(this, aDefault); return(ret); }
public int ToInt(int aDefault) { int ret = XmlSettingsValueConverter <int> .Convert(this, aDefault); return(ret); }