如何关联Silverlight和ASP.NET项目发布于 2009年11月7日 Zheng Li用过Silverlight的兄弟都清楚,当在Visual Studio 2008中建立一个Silverlight Application继续阅读
好吧,我承认只有我才会发现这样的小问题发布于 2009年9月14日 Zheng Lipublic sealed class ScrollViewer : ContentControl // // Summary: // Gets a value that represents the horizontal size of the area that can be // scrolled; the继续阅读
"C#中反射(Reflection)对const、readonly及static的影响发布于 2009年1月8日 Zheng Liusing System; using System.Collections.Generic; using System.Text; using System.Reflection; namespace ConsoleApplication1 { public class ReflectionTest {继续阅读
C#读取任意charset网页发布于 2009年1月2日 Zheng Liprivate string GetPageContent(string address) { try { string result = null; HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(address); req.Method =继续阅读
Visual Studio 2008 C#项目代码行统计工具发布于 2008年11月26日 Zheng Li我写的一个工具,可以打开一个Visual Studio 2008项目的解决方案.sln文件,分析其中的C#项目,统计代码行数。代码目前主要统计总行数、空行数、注释行这三种,计算注释比例和代码循环嵌套深度。 目前只对Visual Studio继续阅读
Redmine.NET发布于 2008年11月23日 Zheng LiRedmine.NET是我最近一段时间的心血。在之前我曾经写过几篇Redmine的博文,Redmine我也一直在用。现在既然DreamHost支持Ruby,何不建一个Redmine给自己管理项目呢?继续阅读
Visual Studio 2010和.NET Framework 4.0来啦发布于 2008年9月29日 Zheng Li微软刚刚宣布了Visual Studio 2010(Code name "Rosario")和.NET Framework 4.0。 > “With Visual Studio 2010 and the .NET Framework 4.0, we are focused on the core pillars of继续阅读
Vista下WCF服务器端AddressAccessDeniedException原因及解决发布于 2008年9月9日 Zheng Li在Windows Vista下跑WCF的Http程序,启动时会遇到这样一个异常: AddressAccessDeniedException HTTP could not register URL http://+:8000/. Your process does not have access rights to继续阅读
.NET Remoting发布于 2008年9月2日 Zheng Li.NET远程处理层(Remoting)是一个比较古老的概念吧,Framework 1.0就存在。远程处理是两个对象跨应用程序域进行通信的行为,两个对象可以在同一计算机,也可以不在;在同一计算机也可以存在于不同的进程和应用程序域(AppDomain) 优点: - 便于我们进行分布式开发 -继续阅读
CPU占用率形成正弦曲线(C#)发布于 2008年9月1日 Zheng Li这是《编程之美——微软技术面试心得》里的第一个题,后来我推荐到微软亚洲研究院的一个实习生面试的时候做的正是这个题。 其实这个题难度适中,现在机器都是多核CPU,照书里的答案去做早就不行了。 下面我给出一个适用于双核CPU上在两个核都形成正弦曲线的做法吧。 using System; using继续阅读