ToString() public method

public ToString ( ) : string
return string
コード例 #1
0
        public override string ToString()
        {
            string text  = "";
            string text2 = "";

            for (int i = 0; i < GUILayoutEntry.indent; i++)
            {
                text2 += " ";
            }
            text = string.Concat(new string[]
            {
                text,
                base.ToString(),
                " Margins: ",
                this.m_ChildMinHeight.ToString(),
                " {\n"
            });
            GUILayoutEntry.indent += 4;
            foreach (GUILayoutEntry current in this.entries)
            {
                string         arg_9E_0 = text;
                GUILayoutEntry expr_8D  = current;
                text = arg_9E_0 + ((expr_8D != null) ? expr_8D.ToString() : null) + "\n";
            }
            text = text + text2 + "}";
            GUILayoutEntry.indent -= 4;
            return(text);
        }
コード例 #2
0
        public override string ToString()
        {
            string empty1 = string.Empty;
            string empty2 = string.Empty;

            for (int index = 0; index < GUILayoutEntry.indent; ++index)
            {
                empty2 += " ";
            }
            string str1 = empty1 + base.ToString() + " Margins: " + (object)this.m_ChildMinHeight + " {\n";

            GUILayoutEntry.indent += 4;
            using (List <GUILayoutEntry> .Enumerator enumerator = this.entries.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    GUILayoutEntry current = enumerator.Current;
                    str1 = str1 + current.ToString() + "\n";
                }
            }
            string str2 = str1 + empty2 + "}";

            GUILayoutEntry.indent -= 4;
            return(str2);
        }