|
static object | EnumFromName (Type enumType, string enumName) |
| 获取枚举实例
|
|
static string | EnumToName (Enum param) |
| 获取枚举实例名称
|
|
static string | StripHtml (string source) |
| 去除字符串中的Html
|
|
static List< int > | GetIntListFromString (string postValue) |
| 将字符串"1,2,3"转化为整形列表[1,2,3]
|
|
static List< int > | GetIntListFromString (string postValue, bool sortBeforeReturn) |
| 将字符串"1,2,3"转化为整形列表[1,2,3]
|
|
static List< string > | GetStringListFromString (string postValue) |
| 将字符串"ssdd,2,ok"转化为字符串列表["ssdd","2","ok"]
|
|
static List< string > | GetStringListFromString (string postValue, bool sortBeforeReturn) |
| 将字符串"ssdd,2,ok"转化为字符串列表["ssdd","2","ok"]
|
|
static string | GetStringFromStringArray (string[] strArray) |
| 将字符串数组["ssdd","2","ok"]转化为字符串"ssdd,2,ok"
|
|
static string | GetStringFromIntArray (int[] intArray) |
| 将整型数组[2,3,4]转化为字符串"2,3,4"
|
|
static bool | CompareIntArray (int[] array1, int[] array2) |
| 比较两个整形数组是否相等 顺序无关,比如 [1,2] 和 [2,1] 被认为是相同的
|
|
static bool | CompareIntArray (int[] array1, int[] array2, bool keepOrder) |
| 比较两个整形数组是否相等
|
|
static bool | CompareStringArray (string[] array1, string[] array2) |
| 比较两个字符串数组是否相等 顺序无关,比如 ["value1","value2"] 和 ["value2","value1"] 被认为是相同的
|
|
static bool | CompareStringArray (string[] array1, string[] array2, bool keepOrder) |
| 比较两个字符串数组是否相等
|
|
static string | ConvertPercentageToDecimalString (string percentageStr) |
| 将 10% 转换为 0.1 的字符串的形式(如果是小数,则直接返回)
|
|
static string | DecodeFrom64 (byte[] encodedDataAsBytes) |
| Base64解码
|
|
static string | DecodeFrom64 (string encodedData) |
| Base64解码
|
|
static string | EncodeTo64 (byte[] toEncodeAsBytes) |
| Base64编码
|
|
static string | EncodeTo64 (string toEncode) |
| Base64编码
|
|
static string | Gzip (string source) |
| Gzip编码字符串
|
|
static string | Ungzip (string source) |
| 解码Gzip字符串
|
|
static object | LoadGzippedViewState (string gzippedState) |
| 加载Gzipped的ViewState
|
|
static string | GenerateGzippedViewState (object viewState) |
| 生成Gzipped的ViewState
|
|
static string | NewLineToBR (string source) |
| 将字符串中的换行符转化为HTML换行符
|
|