} // WriteXmlToString(xmlDoc) #endregion #region Save a system-specific type to a xml-value /// <summary> /// Convert xml type to string /// </summary> /// <param name="typeValue">Type value</param> /// <returns>String</returns> public static string ConvertXmlTypeToString(object typeValue) { // Special save handling only for the date (at the moment) if (typeValue.GetType() == new DateTime().GetType()) { return(CStringHelper.WriteIsoDate((DateTime)typeValue)); } // if (typeValue.GetType) else { return(typeValue.ToString()); } // else } // ConvertXmlTypeToString(typeValue)