摘要: using System; namespace DotNet.Utilities { /// <summary> /// BaseRandom /// 产生随机数 /// /// 随机数管理,最大值、最小值可以自己进行设定。 /// </summary> public class BaseRando 阅读全文
posted @ 2017-06-21 15:39 哈哈哈嗝 阅读(517) 评论(2) 推荐(0) 编辑
摘要: using System; namespace DotNet.Utilities { /// <summary> /// 时间类 /// 1、SecondToMinute(int Second) 把秒转换成分钟 /// </summary> public class TimeHelper { /// 阅读全文
posted @ 2017-06-21 15:21 哈哈哈嗝 阅读(1097) 评论(0) 推荐(1) 编辑
摘要: using System.Text.RegularExpressions; namespace DotNet.Utilities { /// <summary> /// 汉字转拼音类 /// </summary> public class EcanConvertToCh { //定义拼音区编码数组 阅读全文
posted @ 2017-06-21 14:52 哈哈哈嗝 阅读(2330) 评论(5) 推荐(0) 编辑
摘要: using System.Xml; using System.Data; namespace DotNet.Utilities { /// <summary> /// Xml的操作公共类 /// </summary> public class XmlHelper { #region 字段定义 /// 阅读全文
posted @ 2017-06-21 13:57 哈哈哈嗝 阅读(7542) 评论(0) 推荐(1) 编辑
摘要: using System; using System.Security.Cryptography; using System.Text; namespace DotNet.Utilities { /// <summary> /// Encrypt 的摘要说明。 /// </summary> publ 阅读全文
posted @ 2017-06-21 11:16 哈哈哈嗝 阅读(2397) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; namespace Utils { /// <summary> /// <para> </para> /// 常用 阅读全文
posted @ 2017-06-21 10:52 哈哈哈嗝 阅读(19747) 评论(0) 推荐(2) 编辑
摘要: 注意添加引用:System.Configuration; using System; using System.Collections.Generic; using System.Text; using System.Configuration; namespace DotNet.Utilities 阅读全文
posted @ 2017-06-20 15:57 哈哈哈嗝 阅读(1107) 评论(0) 推荐(1) 编辑
摘要: using System.Collections; using System.Text.RegularExpressions; namespace DotNet.Utilities { public class BarCodeToHTML { public static string get39(s 阅读全文
posted @ 2017-06-20 15:17 哈哈哈嗝 阅读(901) 评论(0) 推荐(2) 编辑
摘要: 一、SQL Server 相关 1 /// <summary> 2 /// 数据库的通用访问代码 3 /// 此类为抽象类, 4 /// 不允许实例化,在应用时直接调用即可 5 /// </summary> 6 public abstract class SqlHelper 7 { 8 /// <s 阅读全文
posted @ 2017-06-20 15:03 哈哈哈嗝 阅读(1784) 评论(0) 推荐(1) 编辑
摘要: C#正则验证大全 Regex.IsMatch()正则表达式验证 需要引入命名空间 using System.Text.RegularExpressions; 阅读全文
posted @ 2017-06-19 14:45 哈哈哈嗝 阅读(591) 评论(1) 推荐(3) 编辑