Exemplo n.º 1
0
        /// <summary>
        /// Returns a <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>.
        /// </summary>
        /// <returns>
        /// A <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>.
        /// </returns>
        public override string ToString()
        {
            string xmlDataType        = (XmlData == null) ? typeof(XmlTransferObject).Name : XmlData.GetType().Name;
            string additionalDataType = (AdditionalData == null) ? typeof(AdditionalInfo).Name : AdditionalData.GetType().Name;

            return(String.Format(CultureInfo.InvariantCulture,
                                 "<XmlData type='{0}'>{1}</XmlData><AdditionalData type='{2}'>{3}</AdditionalData><DatabaseId type='{4}'>{5}</DatabaseId>", xmlDataType, XmlData, additionalDataType, AdditionalData, DatabaseId));
        }