//辅助自定义代码生成器用
public void READSB()
        {

            string dir = AppDomain.CurrentDomain.BaseDirectory;
            dir = dir + "READ\\";
            if (!Directory.Exists(dir))
            {
                Directory.CreateDirectory(dir);
            }
            string file = dir + "a.txt";
            string file2 = dir + "b.txt";
            string line = string.Empty;
            StringBuilder sb = new StringBuilder();
            using (StreamReader reader = new StreamReader(file))
            {
                while ((line = reader.ReadLine()) != null)
                {
                    line = line.Replace("\"","\\\"");
                    sb.Append(" sb.Append(\"" + line + "\\r\\n\");\r\n");
                }
                reader.Close();
            }


            #region 日志记录  保存操作记录及异常信息
            using (StreamWriter sw = new StreamWriter(file2, false))
            {
                sw.Write(sb.ToString());
                sw.Close();
            }
            #endregion
          
        }

//字符串第一个字符转为大写
  private string GetFirstUpperStr(string s)
        {
            if (!string.IsNullOrEmpty(s))
            {
                if (s.Length > 1)
                {
                    return char.ToUpper(s[0]) + s.Substring(1);
                }
                return char.ToUpper(s[0]).ToString();
            }
            return null;
        }