C# 字符串位数截断

    技术2023-04-03  74

                #region 字符串位数截断             public string strCa(string Str,int I)             {                 string ReStr = Str;                 if(!(Str==""||Str==null))                 {                     if (Str.Length > I) ReStr = Str.Substring(0, I);                     ReStr = ReStr.Replace("'", "");                 }                 return ReStr;             }             #endregion

    Processed: 0.009, SQL: 9