ClassPublic class GetMethods {...}
Class variables:
|
|
| GetStr () |
|
| GetStrAndNum () |
|
ClassPublic class GetString {...}
Class variables:
Methods In the class:
TheClassPublic class GetMethods {...}
: Methods in this class come from: http://www.cnblogs.com/xiachufeng/archive/2012/04/01/2429065.html
codeCount= rep = str = num2 = DateTime.Now.Ticks + rep++ Random random = Random((()((()num2) & )) | (()(num2 >> ( i = ; i < codeCount; i++ num = str = str + (()( + (()(num % str = num2 = DateTime.Now.Ticks + rep++ Random random = Random((()((()num2) & )) | (()(num2 >> ( i = ; i < codeCount; i++ num = str = str + (()( + (()(num % str = num2 = DateTime.Now.Ticks + rep++ Random random = Random((()((()num2) & )) | (()(num2 >> ( i = ; i < codeCount; i++ num = ((num % ) == ch = ()( + (()(num % ch = ()( + (()(num % str = str + }
2)CategoryPublic class GetString {...}
GetRandomCode(Code codeType, GetMethods getMethod= getMethod.codeCount = addMethod = ()addMethod.Invoke(getMethod, GetMethods getMethod= addMethod = ()addMethod.Invoke(getMethod, [] methods = { , , methods[( }
Using StringControl; // Code omitted
//.....................
/// Code omitted
// Usage
RandomKey = GetString. GetRandomCode (GetString. Code. StrAndNum ,);
RandomKey1 = GetString. GetRandomCode (GetString. Code. StrAndNum); // four digits
/// Code omitted
//.....................
/// Code omitted