温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:漂亮无限级分类源代码(三层实现)
当前文件路径:JohnTree/JohnTree.Library/StringHelper.cs

1using System; 2
using System.Collections.Generic; 3
using System.Text; 4
5
namespace JohnTree.Library 6
{ 7
public static class StringHelper 8
{ 9
/// <summary> 10
/// 生成指定长度的字符串,即生成strLong个str字符串 11
/// </summary> 12
/// <param name="strLong">生成的长度</param> 13
/// <param name="str">以str生成字符串</param> 14
/// <returns></returns> 15
public static string StringOfChar( int strLong, string str ) 16
{ 17
string ReturnStr = ""; 18
for (int i = 0; i < strLong; i++) 19
{ 20
ReturnStr += str; 21
} 22
23
return ReturnStr; 24
} 25
26
/// <summary> 27
/// 生成日期随机码 28
/// </summary> 29
/// <returns></returns> 30
public static string GetRamCode() 31
{ 32
... 35
} 36
} 37
} 38





}