<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_Dev.Hong_分类_C#</title><id>http://feed.cnblogs.com/blog/u/25261/category/90645/rss</id><updated>2012-05-29T00:02:53Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/T-MAC/category/90645.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/25261/category/90645/rss"/><entry><id>http://www.cnblogs.com/T-MAC/archive/2011/01/01/1923831.html</id><title type="text">自定义log4net Appender，实现日志写入MongoDB中</title><summary type="text">[代码]///&lt;summary&gt;[代码][代码]代码很简单，MongoAppender继承自log4net.Appender.BufferingAppenderSkeleton,实现SendBuffer方法即可。这里给出用于访问mongodb的datacontext(mongodb的客户端为mongodb-csharp)///&lt;summary&gt;[代码]最后附上配置文件代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--&gt;&lt;?xmlversion="1</summary><published>2011-01-01T11:13:00Z</published><updated>2011-01-01T11:13:00Z</updated><author><name>Dev.Hong</name><uri>http://www.cnblogs.com/T-MAC/</uri></author><link rel="alternate" href="http://www.cnblogs.com/T-MAC/archive/2011/01/01/1923831.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/T-MAC/archive/2011/01/01/1923831.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/T-MAC/archive/2008/11/04/1326458.html</id><title type="text">Linq学习的一些资料</title><summary type="text">了解Lambda 表达式是必须的：http://www.rainsts.net/article.asp?id=535http://www.cppblog.com/javenstudio/articles/778.htmlhttp://blog.joycode.com/scottgu/archive/2007/04/09/100744.aspxLinq Providerhttp://www.cnbl...</summary><published>2008-11-04T08:39:00Z</published><updated>2008-11-04T08:39:00Z</updated><author><name>Dev.Hong</name><uri>http://www.cnblogs.com/T-MAC/</uri></author><link rel="alternate" href="http://www.cnblogs.com/T-MAC/archive/2008/11/04/1326458.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/T-MAC/archive/2008/11/04/1326458.html"/><content type="text">了解Lambda 表达式是必须的：http://www.rainsts.net/article.asp?id=535http://www.cppblog.com/javenstudio/articles/778.htmlhttp://blog.joycode.com/scottgu/archive/2007/04/09/100744.aspxLinq Providerhttp://www.cnbl...</content></entry><entry><id>http://www.cnblogs.com/T-MAC/archive/2008/05/20/1203184.html</id><title type="text">SilverLight2.0例子集合</title><summary type="text">Web Services - SOAP Weather WidgetThis widget provides live weather data for any ZIP code by accessing a SOAP web service. For more web services samples click here. 演示：http://silverlight.net/Samples/2...</summary><published>2008-05-20T03:03:00Z</published><updated>2008-05-20T03:03:00Z</updated><author><name>Dev.Hong</name><uri>http://www.cnblogs.com/T-MAC/</uri></author><link rel="alternate" href="http://www.cnblogs.com/T-MAC/archive/2008/05/20/1203184.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/T-MAC/archive/2008/05/20/1203184.html"/><content type="text">Web Services - SOAP Weather WidgetThis widget provides live weather data for any ZIP code by accessing a SOAP web service. For more web services samples click here. 演示：http://silverlight.net/Samples/2...</content></entry><entry><id>http://www.cnblogs.com/T-MAC/archive/2007/12/07/CompressionHttpHandler.html</id><title type="text">利用.net2.0中的GZip或Deflate压缩文件</title><summary type="text">在DotNet2.0中提供了GZip和Deflate压缩算法，而现在的浏览器几乎都支持 GZip 和 Deflate 压缩，因此在传输一些大的JS或CSS文件(如EXTJS)时对它进行压缩则可以减少下载时间，从而提高加载速度。</summary><published>2007-12-07T02:33:00Z</published><updated>2007-12-07T02:33:00Z</updated><author><name>Dev.Hong</name><uri>http://www.cnblogs.com/T-MAC/</uri></author><link rel="alternate" href="http://www.cnblogs.com/T-MAC/archive/2007/12/07/CompressionHttpHandler.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/T-MAC/archive/2007/12/07/CompressionHttpHandler.html"/><content type="text">在DotNet2.0中提供了GZip和Deflate压缩算法，而现在的浏览器几乎都支持 GZip 和 Deflate 压缩，因此在传输一些大的JS或CSS文件(如EXTJS)时对它进行压缩则可以减少下载时间，从而提高加载速度。</content></entry><entry><id>http://www.cnblogs.com/T-MAC/archive/2007/11/10/timer.html</id><title type="text">提供一个获取高精度时间类</title><summary type="text">如果你觉得用 DotNet 自带的 DateTime 获取的时间精度不够，解决的方法是通过调用 QueryPerformanceFrequency 和 QueryPerformanceCounter这两个API来实现。</summary><published>2007-11-10T13:18:00Z</published><updated>2007-11-10T13:18:00Z</updated><author><name>Dev.Hong</name><uri>http://www.cnblogs.com/T-MAC/</uri></author><link rel="alternate" href="http://www.cnblogs.com/T-MAC/archive/2007/11/10/timer.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/T-MAC/archive/2007/11/10/timer.html"/><content type="text">如果你觉得用 DotNet 自带的 DateTime 获取的时间精度不够，解决的方法是通过调用 QueryPerformanceFrequency 和 QueryPerformanceCounter这两个API来实现。</content></entry><entry><id>http://www.cnblogs.com/T-MAC/archive/2007/09/29/911225.html</id><title type="text">关于Lucene.Net的一些疑问</title><summary type="text">Lucene.Net很早就听说过了，只是一直不需要用到，故到现在也没有试过，今天晚上忽然发神经，到它的官网上下载了最新版（2.0-004）。这里有几个问题想请教一下：在园子里搜到一些关于Lucene.Net的文章，有些朋友说Lucene.Net已经开始收费了，但是今天却可以下载，这是怎么回事？Lucene.Net是用在vs2003下写的，我把它编译了一下，发现有一大堆的警告：园子里很多了都说Luc...</summary><published>2007-09-29T14:04:00Z</published><updated>2007-09-29T14:04:00Z</updated><author><name>Dev.Hong</name><uri>http://www.cnblogs.com/T-MAC/</uri></author><link rel="alternate" href="http://www.cnblogs.com/T-MAC/archive/2007/09/29/911225.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/T-MAC/archive/2007/09/29/911225.html"/><content type="text">Lucene.Net很早就听说过了，只是一直不需要用到，故到现在也没有试过，今天晚上忽然发神经，到它的官网上下载了最新版（2.0-004）。这里有几个问题想请教一下：在园子里搜到一些关于Lucene.Net的文章，有些朋友说Lucene.Net已经开始收费了，但是今天却可以下载，这是怎么回事？Lucene.Net是用在vs2003下写的，我把它编译了一下，发现有一大堆的警告：园子里很多了都说Luc...</content></entry><entry><id>http://www.cnblogs.com/T-MAC/archive/2007/09/20/900151.html</id><title type="text">DirectX中将屏幕坐标转成空间坐标</title><summary type="text">Point p = Cursor.Position;p = this.PointToClient(p);Vector3 v1 = new Vector3(p.X, p.Y, 0f);v1.Unproject(this.GraphicDevice.Viewport, this.GraphicDevice.Transform.Projection, this.GraphicDevice.Transfo...</summary><published>2007-09-20T07:47:00Z</published><updated>2007-09-20T07:47:00Z</updated><author><name>Dev.Hong</name><uri>http://www.cnblogs.com/T-MAC/</uri></author><link rel="alternate" href="http://www.cnblogs.com/T-MAC/archive/2007/09/20/900151.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/T-MAC/archive/2007/09/20/900151.html"/><content type="text">Point p = Cursor.Position;p = this.PointToClient(p);Vector3 v1 = new Vector3(p.X, p.Y, 0f);v1.Unproject(this.GraphicDevice.Viewport, this.GraphicDevice.Transform.Projection, this.GraphicDevice.Transfo...</content></entry><entry><id>http://www.cnblogs.com/T-MAC/archive/2007/08/30/875501.html</id><title type="text">[转]深入探讨透视投影坐标变换</title><summary type="text"/><published>2007-08-30T03:05:00Z</published><updated>2007-08-30T03:05:00Z</updated><author><name>Dev.Hong</name><uri>http://www.cnblogs.com/T-MAC/</uri></author><link rel="alternate" href="http://www.cnblogs.com/T-MAC/archive/2007/08/30/875501.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/T-MAC/archive/2007/08/30/875501.html"/><content type="text"/></entry><entry><id>http://www.cnblogs.com/T-MAC/archive/2007/08/09/848793.html</id><title type="text">关于Sprite.Draw2D</title><summary type="text"/><published>2007-08-09T02:11:00Z</published><updated>2007-08-09T02:11:00Z</updated><author><name>Dev.Hong</name><uri>http://www.cnblogs.com/T-MAC/</uri></author><link rel="alternate" href="http://www.cnblogs.com/T-MAC/archive/2007/08/09/848793.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/T-MAC/archive/2007/08/09/848793.html"/><content type="text"/></entry><entry><id>http://www.cnblogs.com/T-MAC/archive/2007/05/17/Gentle_Net_2_0.html</id><title type="text">Gentle.NET 2.0</title><summary type="text">Gentle.NET自从发布1.2.9以来已经很久没新版本出来了，并且作者说不会再对Gentle.NET进行任何更新，而现在的一个项目是采用.Net2.0来做的(太落伍了呵)，所以花了点时间，将它升级到了2.0下，现共享出来，方便大家。</summary><published>2007-05-17T07:24:00Z</published><updated>2007-05-17T07:24:00Z</updated><author><name>Dev.Hong</name><uri>http://www.cnblogs.com/T-MAC/</uri></author><link rel="alternate" href="http://www.cnblogs.com/T-MAC/archive/2007/05/17/Gentle_Net_2_0.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/T-MAC/archive/2007/05/17/Gentle_Net_2_0.html"/><content type="text">Gentle.NET自从发布1.2.9以来已经很久没新版本出来了，并且作者说不会再对Gentle.NET进行任何更新，而现在的一个项目是采用.Net2.0来做的(太落伍了呵)，所以花了点时间，将它升级到了2.0下，现共享出来，方便大家。</content></entry><entry><id>http://www.cnblogs.com/T-MAC/archive/2007/05/12/ITrackingHandler.html</id><title type="text">ITrackingHandler</title><summary type="text">场景:clientA和clientB同时连接到serverA上，这时由于网络原因或断电故障，clientA退出了,但在clientB上却还显示clientA还在线，那么我们怎样才能帮clientB纠正这个错误呢？请看ITrackingHandler接口登场。</summary><published>2007-05-12T07:22:00Z</published><updated>2007-05-12T07:22:00Z</updated><author><name>Dev.Hong</name><uri>http://www.cnblogs.com/T-MAC/</uri></author><link rel="alternate" href="http://www.cnblogs.com/T-MAC/archive/2007/05/12/ITrackingHandler.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/T-MAC/archive/2007/05/12/ITrackingHandler.html"/><content type="text">场景:clientA和clientB同时连接到serverA上，这时由于网络原因或断电故障，clientA退出了,但在clientB上却还显示clientA还在线，那么我们怎样才能帮clientB纠正这个错误呢？请看ITrackingHandler接口登场。</content></entry><entry><id>http://www.cnblogs.com/T-MAC/archive/2007/05/12/Caret.html</id><title type="text">自定义文本编辑控件中的光标控制</title><summary type="text">在编写文本编辑控件时，对于光标的控制，需要用到 CreateCaret,SetCaretPos,DestroyCaret,ShowCaret,HideCaret API</summary><published>2007-05-12T06:31:00Z</published><updated>2007-05-12T06:31:00Z</updated><author><name>Dev.Hong</name><uri>http://www.cnblogs.com/T-MAC/</uri></author><link rel="alternate" href="http://www.cnblogs.com/T-MAC/archive/2007/05/12/Caret.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/T-MAC/archive/2007/05/12/Caret.html"/><content type="text">在编写文本编辑控件时，对于光标的控制，需要用到 CreateCaret,SetCaretPos,DestroyCaret,ShowCaret,HideCaret API</content></entry><entry><id>http://www.cnblogs.com/T-MAC/archive/2007/04/23/723883.html</id><title type="text">System.Drawing.Drawing2.Matrix[笔记]</title><summary type="text">平移变换的变换矩阵为 Tm=对应的Matrix定义为 Matrix m = new Matrix(1,0,0,1,Mx,My); 其中Mx是水平方向移动的距离，My是垂直方向的距离，向左负向右正，向下负向上正。缩放变换矩阵为: Ts=对应的Matrix定义为 Matrix s = new Matrix(Sx,0,0,Sy,0,0);其中Sx是水平方向上缩放的比例，Sy是竖直方向上缩放的比例，大小1...</summary><published>2007-04-23T07:02:00Z</published><updated>2007-04-23T07:02:00Z</updated><author><name>Dev.Hong</name><uri>http://www.cnblogs.com/T-MAC/</uri></author><link rel="alternate" href="http://www.cnblogs.com/T-MAC/archive/2007/04/23/723883.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/T-MAC/archive/2007/04/23/723883.html"/><content type="text">平移变换的变换矩阵为 Tm=对应的Matrix定义为 Matrix m = new Matrix(1,0,0,1,Mx,My); 其中Mx是水平方向移动的距离，My是垂直方向的距离，向左负向右正，向下负向上正。缩放变换矩阵为: Ts=对应的Matrix定义为 Matrix s = new Matrix(Sx,0,0,Sy,0,0);其中Sx是水平方向上缩放的比例，Sy是竖直方向上缩放的比例，大小1...</content></entry><entry><id>http://www.cnblogs.com/T-MAC/archive/2007/04/18/WinMsnPopup.html</id><title type="text">WinForm下的Msn Popup</title><summary type="text">由于项目当中需要用到一个类似于MSN的Popup，参考了CodeProject的一个例子，加入了自已需要的一些功能，现把它共享出来，运行的界面如下：</summary><published>2007-04-18T07:43:00Z</published><updated>2007-04-18T07:43:00Z</updated><author><name>Dev.Hong</name><uri>http://www.cnblogs.com/T-MAC/</uri></author><link rel="alternate" href="http://www.cnblogs.com/T-MAC/archive/2007/04/18/WinMsnPopup.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/T-MAC/archive/2007/04/18/WinMsnPopup.html"/><content type="text">由于项目当中需要用到一个类似于MSN的Popup，参考了CodeProject的一个例子，加入了自已需要的一些功能，现把它共享出来，运行的界面如下：</content></entry><entry><id>http://www.cnblogs.com/T-MAC/archive/2007/04/17/GentleException.html</id><title type="text">自定义Exception</title><summary type="text">Gentle.NET是用C#写的一个开源的数据持久层，我曾经初略的看过他的代码，Gentle.NET的结构写得很清晰，值得一看，今天先说说它的自定义异常GentleException。GentleException继承自 System.ApplicationException,并且实现了ISerializable接口,它有扩展了Error属性,类型为自定义的Error枚举，指示该GentleException的具体错误。并且重写了ToString方法，将Error的相关信息写入到了String当中并返回。</summary><published>2007-04-17T05:59:00Z</published><updated>2007-04-17T05:59:00Z</updated><author><name>Dev.Hong</name><uri>http://www.cnblogs.com/T-MAC/</uri></author><link rel="alternate" href="http://www.cnblogs.com/T-MAC/archive/2007/04/17/GentleException.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/T-MAC/archive/2007/04/17/GentleException.html"/><content type="text">Gentle.NET是用C#写的一个开源的数据持久层，我曾经初略的看过他的代码，Gentle.NET的结构写得很清晰，值得一看，今天先说说它的自定义异常GentleException。GentleException继承自 System.ApplicationException,并且实现了ISerializable接口,它有扩展了Error属性,类型为自定义的Error枚举，指示该GentleException的具体错误。并且重写了ToString方法，将Error的相关信息写入到了String当中并返回。</content></entry><entry><id>http://www.cnblogs.com/T-MAC/archive/2007/04/14/XMLConfig.html</id><title type="text">DotNet下的自定义配置方案</title><summary type="text">在App.Config或Web.Config都可以进行自定义配置，但使用起来比较麻烦，尤其是在Web.Config中如果改动了自定义的配置会导致整个Web Application重启，所以自已写了一个配置方案，使用起来还是挺方便的</summary><published>2007-04-14T05:52:00Z</published><updated>2007-04-14T05:52:00Z</updated><author><name>Dev.Hong</name><uri>http://www.cnblogs.com/T-MAC/</uri></author><link rel="alternate" href="http://www.cnblogs.com/T-MAC/archive/2007/04/14/XMLConfig.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/T-MAC/archive/2007/04/14/XMLConfig.html"/><content type="text">在App.Config或Web.Config都可以进行自定义配置，但使用起来比较麻烦，尤其是在Web.Config中如果改动了自定义的配置会导致整个Web Application重启，所以自已写了一个配置方案，使用起来还是挺方便的</content></entry></feed>
