2020-02-16 22:11:24 +08:00
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace JXCMS.Core.Extensions
|
2020-02-09 19:10:05 +08:00
|
|
|
|
{
|
|
|
|
|
public static class StringExtension
|
|
|
|
|
{
|
|
|
|
|
public static bool IsNullOrEmpty(this string str)
|
|
|
|
|
{
|
|
|
|
|
return string.IsNullOrEmpty(str);
|
|
|
|
|
}
|
2020-02-16 22:11:24 +08:00
|
|
|
|
|
|
|
|
|
public static string InsertMultipleString(this string str, string insertStr, int count)
|
|
|
|
|
{
|
|
|
|
|
StringBuilder returnValue = new StringBuilder();
|
|
|
|
|
for (int i = 0; i < count; i++)
|
|
|
|
|
{
|
|
|
|
|
returnValue.Append(insertStr);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
returnValue.Append(str);
|
|
|
|
|
return returnValue.ToString();
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-09 19:10:05 +08:00
|
|
|
|
}
|
|
|
|
|
}
|