C# get md5 from bytes
程序员文章站
2022-08-28 13:34:56
static byte[] GetBytesFromDic(Dictionary dic) { if(dic==null || !dic.Any()) { return null; } using (MemoryStream ms = new MemoryStream(... ......
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# 导出pdf(浏览器不预览直接下载)
下一篇: STT-MRMA技术优点