Backup/Tsr.Common/StringPlus.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Text;
namespace Tsr.Common
{
public class StringPlus
{
public static string DelLastChar(string str, string strchar)
{
return str.Substring(0, str.LastIndexOf(strchar));
}
public static string DelLastComma(string str)
{
return str.Substring(0, str.LastIndexOf(","));
}
public static string GetArrayStr(List<string> list, string speater)
{
StringBuilder builder = new StringBuilder();
for (int i = 0; i < list.Count; i++)
{
if (i == (list.Count - 1))
{
builder.Append(list[i]);
}
else
{
builder.Append(list[i]);
builder.Append(speater);
}
}
return builder.ToString();
}
public static string[] GetStrArray(string str)
{
return str.Split(new char[0x2c]);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
