22 lines
481 B
C#
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Text;
namespace UtilLib
{
public class ToolUtil
{
public static string GetBlankText(int len)
{
return GetBlankText(len, " ");
}
public static string GetBlankText(int len,string blankText)
{
StringBuilder sb = new StringBuilder();
for (int i = 0; i < len; i++)
{
sb.Append(blankText);
}
return sb.ToString();
}
}
}