Exemplo n.º 1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Returns a <see cref="T:System.String"></see> that represents the current <see cref="T:System.Object"></see>.
        /// </summary>
        /// <returns>
        /// A <see cref="T:System.String"></see> that represents the current <see cref="T:System.Object"></see>.
        /// </returns>
        /// ------------------------------------------------------------------------------------
        public override string ToString()
        {
            string result = "ManyOnePathSortItem on " + m_hvoItem;

            if (m_rootObject == null)
            {
                result += " root object null ";
            }
            else if (m_rootObject.IsValidObject())
            {
                result += " root object valid ";
            }
            else
            {
                result += " root object invalid ";
            }
            result += "path ";
            if (m_pathObjects != null)
            {
                foreach (int hvo in m_pathObjects)
                {
                    result += hvo + " ";
                }
            }
            return(result);
        }