共 6 篇文章 |
|
阅23 转0 评0 公众公开 17-12-14 18:07 |
c# XML序列化与反序列化[html] view plain copy print?原先一直用BinaryFormatter来序列化挺好,可是最近发现在WinCE下是没有办法进行BinaryFormatter操作,很不爽,只能改成了BinaryWriter和BinaryReader来读写,突然想到能不能用XML来序列化? 阅378 转3 评0 公众公开 17-12-05 16:27 |
阅558 转20 评0 公众公开 17-11-16 16:32 |
NotifyIcon notifyIcon;MenuItem> MenuItems { get { return (List<Forms./// <summary> /// 鼠标双击 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void NotificationAreaIcon_MouseDoubleClick(ob... 阅608 转6 评0 公众公开 17-11-16 15:36 |
c#中GBK与UNICODE互转。unicode to GBK.// aText 是 string类型,unicode编码。Encoding gbkencoding = Encoding.byte[] gbkBytes = gbkencoding.GetBytes(aText);//gbkBytes 中是GBK字节流。GBK to unicode。// buff 是GBK字节数组。byte[] buf2 = Encoding.Convert(gbkencoding,Encoding.Unicode, buff);string atext =Encoding.Unicode. 阅1498 转1 评0 公众公开 17-11-13 08:21 |