摘要: using System;using System.Collections.Generic;using System.Text;using System.Text.RegularExpressions;namespace TypeClass{ public class TypeParse { /// <summary> /// 判断对象是否为Int32类型的数字 /// </summary> /// <param name="Expression"></param> /// <returns></return 阅读全文
posted @ 2012-05-31 18:57 爱智旮旯 阅读(494) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections;using System.Collections.Generic;using System.Text;using System.Text.RegularExpressions;using System.Security.Cryptography;using System.IO;using System.Text;namespace StringClass{ public class StringHelper { /// <summary> /// 去掉字符串中的所有空格 ... 阅读全文
posted @ 2012-05-31 18:46 爱智旮旯 阅读(540) 评论(1) 推荐(0) 编辑
摘要: using System;using System.Security.Cryptography;using System.Text;/// <summary>/// DES加密/解密类。/// LiTianPing/// </summary>public class DESEncrypt{ public DESEncrypt() { } #region ========加密======== /// <summary> /// 加密 /// </summary> /// <param name="Text">< 阅读全文
posted @ 2012-05-31 18:38 爱智旮旯 阅读(739) 评论(2) 推荐(0) 编辑
摘要: using System;using System.Xml;using System.Data;namespace XmlClass { /// <summary> /// XML相关通用功能 /// </summary> public class XmlHelper { public XmlHelper() { } /// <summary> /// XML资源类型 /// </summary> public... 阅读全文
posted @ 2012-05-31 18:35 爱智旮旯 阅读(1236) 评论(1) 推荐(1) 编辑
摘要: //默认密钥向量private static byte[] Keys = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF };/// <summary>/// DES加密字符串/// </summary>/// <param name="encryptString">待加密的字符串</param>/// <param name="encryptKey">加密密钥,要求为8位</param>/// <returns>加密成功 阅读全文
posted @ 2012-05-31 18:30 爱智旮旯 阅读(1260) 评论(0) 推荐(1) 编辑