示例#1
0
        public override string ToString()
        {
            var sb = new StringBuilder();

            sb.Append(Top);

            var pri = Private.ToString();

            if (pri.Length > 0)
            {
                sb.AppendLine("private:");
                sb.Append(pri);
            }

            var pro = Protected.ToString();

            if (pro.Length > 0)
            {
                sb.AppendLine("protected:");
                sb.Append(pro);
            }

            var pub = Public.ToString();

            if (pub.Length > 0)
            {
                sb.AppendLine("public:");
                sb.Append(pub);
            }

            sb.Append(Bottom);
            return(sb.ToString());
        }
示例#2
0
 public override string ToString()
 {
     return(cb.ToString());
 }