随笔分类 -  .NET

webbrowser 获取动态的html内容
摘要:static void Main(string[] args) { var t = new Thread(Stuff); t.SetApartmentState(ApartmentState.STA); ... 阅读全文

posted @ 2014-05-26 14:10 fishyk 阅读(1332) 评论(0) 推荐(0)

Func<>
摘要:class Program { static void Main(string[] args) { Tee(() => { return "aaa"; }); Console.Read(); } static string ter() { return "aa"; } static void Tee(Func fs) { string ss = fs(); } ... 阅读全文

posted @ 2013-02-19 16:34 fishyk

序列化 和 反序列化
摘要:序列化又称串行化,是.NET运行时环境用来支持用户定义类型的流化的机制。其目的是以某种存储形成使自定义对象持久化,或者将这种对象从一个地方传输到另一个地方。 .NET框架提供了两种串行化的方式:1、是使用BinaryFormatter进行串行化;2、使用SoapFormatter进行串行化;3... 阅读全文

posted @ 2013-02-04 23:50 fishyk

导航