随笔 - 850  文章 - 37  评论 - 173  阅读 - 287万
07 2016 档案
c#深拷贝
摘要:下面是 StackOverflow 上的一个回答: Notes:Your class MUST be marked as [Serializable] in order for this to work.Your source file must include the following code 阅读全文
posted @ 2016-07-08 16:29 武胜-阿伟 阅读(370) 评论(0) 推荐(0) 编辑
MEF load plugin from directory
摘要:var catalog = new AggregateCatalog(); catalog.Catalogs.Add(new DirectoryCatalog(".")); var container = new CompositionContainer(catalog); var catalog 阅读全文
posted @ 2016-07-03 20:49 武胜-阿伟 阅读(221) 评论(1) 推荐(0) 编辑
C# 文件操作 把文件读取到字节数组
摘要:string zipfile = "c:\\a.zip"; //方法1 FileStream fs = new FileStream(zipfile, FileMode.Open); //把文件读取到字节数组 byte[] zipdata = new byte[fs.Length]; fs.Read 阅读全文
posted @ 2016-07-03 20:09 武胜-阿伟 阅读(1307) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示