摘要:
if( sysReg.Email!=null || sysReg.Email.Trim()!="") { //email验证 if (!System.Text.RegularExpressions.Regex.IsMatch(sysReg.Email.Trim(),@"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*")) { MessageBox.Show(...
阅读全文
posted @ 2010-01-27 15:02
李承隆
阅读(144)
推荐(0)
编辑
摘要:
static string getMd5Hash(string input) { // Create a new instance of the MD5CryptoServiceProvider object. MD5 md5Hasher = MD5.Create(); // Convert the input string to a byte array and compute the hash...
阅读全文
posted @ 2010-01-27 14:56
李承隆
阅读(92)
推荐(0)
编辑
摘要:
using System;using System.IO;public class Block{ public static void Main() { Stream s = new MemoryStream(); for (int i=0; i<100; i++) s.WriteByte((byte)i); s.Position = 0; // Now read s into a byte...
阅读全文
posted @ 2010-01-27 10:47
李承隆
阅读(150)
推荐(0)
编辑