Common/MyStringBuilder.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Text;
namespace Common
{
    public class MyStringBuilder
    {
        private StringBuilder OutPut = new StringBuilder();

        public void Append(string Text)
        {
            this.OutPut.Append(Text);
        }

        public string AppendLine(string Text)
        {
            return this.AppendLine(Text, ESC.Js);
        }

        public void AppendLine(int TabNum, string Text)
        {
            this.OutPut.Append(Tab(TabNum));
            this.OutPut.Append(Text);
            this.AppendLine("", ESC.Js);
        }

        public string AppendLine(string Text, ESC e)
        {
            if (e == ESC.Js)
            {
                this.OutPut.Append(Text + "\r\n");
            }
            else
            {
                this.OutPut.Append(Text + @"\r\n");
            }
            return this.OutPut.ToString();
        }

        public void DelLastPunctuation()
        {
            string str = this.OutPut.ToString();
            this.OutPut = new StringBuilder();
            try
            {
                this.OutPut.Append(str.Substring(0, str.LastIndexOf(",")));
            }
            catch
            {
                this.OutPut.Append(str);
            }
        }

        public void DelLastPunctuation(char c)
        {
            string str = this.OutPut.ToString();
            this.OutPut = new StringBuilder();
            try
            {
                this.OutPut.Append(str.Substring(0, str.LastIndexOf(c)));
            }
后面还有 28 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。