Esempio n. 1
0
        ///-------------------------------------------------------------------------------------------------
        /// <summary>
        ///  Returns a string that represents the current object.
        /// </summary>
        /// <returns>
        ///  A string that represents the current object.
        /// </returns>
        ///-------------------------------------------------------------------------------------------------
        public override string ToString()
        {
            var stack = new Stack <string>();

            var iterator = Relationships.GetEnumerator();

            foreach (var mel in Elements)
            {
                stack.Push("]");
                stack.Push(mel.ToString());
                if (iterator.MoveNext())
                {
                    stack.Push(" --> [");
                    stack.Push(iterator.Current.SchemaId.ToString());
                    stack.Push(" -- ");
                }
            }
            stack.Push("[");

            return(System.String.Concat(stack));
        }