C# get md5 from bytes

 static byte[] GetBytesFromDic(Dictionary<string,string> dic)
        {
            if(dic==null || !dic.Any())
            {
                return null;
            }
            using (MemoryStream ms = new MemoryStream())
            {
                BinaryFormatter binFormatter = new BinaryFormatter();
                binFormatter.Serialize(ms, dic);
                byte[] dicBytes = ms.ToArray();           
                return dicBytes;
            }
        }

 

C# get md5 from bytes

上一篇:Windows注册表的学习


下一篇:Windows控件的命名规范