生成指定长度的字符串
#region 生成指定长度的字符串 2 /// <summary> 3 /// 生成指定长度的字符串,即生成strLong个str字符串 4 /// </summary> 5 /// <param name="strLong">生成的长度</param> 6 /// <param name="str">以str生成字符串</param> 7 /// <returns></returns> 8 public static string StringOfChar(int strLong, string str) 9 { 10 string ReturnStr = ""; 11 for (int i = 0; i < strLong; i++) 12 { 13 ReturnStr += str; 14 } 15 16 return ReturnStr; 17 } 18 #endregion