摘要:
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(... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文