.net RAW(16)与GUID互相转换

.net
1.raw转guid
new guid(byte[] id);
2.guid转raw
Guid result;
string ids = BitConverter.ToString(result.ToByteArray()).Replace("-","");

posted @ 2016-05-12 17:37  garsonguo  阅读(759)  评论(0编辑  收藏  举报