摘要:
/// <summary> /// 数据类型转换 /// </summary> /// <typeparam name="T">类型</typeparam> /// <param name="value">源数据</param> /// <param name="defaultValue">默认值< 阅读全文
摘要:
/// <summary> /// 截取字符串 /// </summary> /// <param name="text">需要截取的字符串</param> /// <param name="maxLength">长度</param> /// <param name="ishaspoint">是否需 阅读全文
摘要:
#region 根据ip获取地点 /// 获取Ip归属地 /// </summary> /// <param name="ip">ip</param> /// <returns>归属地</returns> public static string GetIpAddress(string ip) { 阅读全文
摘要:
#region 生成随机字符 /// <summary> /// 生成随机字符 /// </summary> /// <param name="iLength">生成字符串的长度</param> /// <returns>返回随机字符串</returns> public static string 阅读全文
摘要:
/// <summary> /// unix时间转换为datetime /// </summary> /// <param name="timeStamp"></param> /// <returns></returns> public static DateTime UnixTimeToTime( 阅读全文
摘要:
public static bool HasChinese(string str) { return Regex.IsMatch(str, @"[\u4e00-\u9fa5]"); } 阅读全文
摘要:
public static string Secretkey() { var Secretkey = Guid.NewGuid().ToString("N") .Remove(25, 1) .Remove(23, 1) .Remove(20, 1) .Remove(18, 1) .Remove(15 阅读全文
摘要:
/// <summary> /// 计算某一年 某一周 的起始时间和结束时间 /// </summary> /// <param name="year"></param> /// <param name="week"></param> /// <param name="first"></param> 阅读全文