代码改变世界

随笔档案-2012年03月

Reading XML File

2012-03-21 09:32 by barbarossia, 160 阅读, 收藏,
摘要: string xmlString = new FileInfo(@"d:\XMLFile1.xml").OpenText().ReadToEnd(); 阅读全文

一个简单的性能计数器:CodeTimer

2012-03-19 10:57 by barbarossia, 210 阅读, 收藏,
摘要: http://blog.zhaojie.me/2009/03/codetimer.htmlThe source code download is:here 阅读全文

Update In Linq

2012-03-16 17:22 by barbarossia, 221 阅读, 收藏,
摘要: http://stackoverflow.com/questions/3658028/linq-to-objects-updateAnd I write a code example to test perfomence.class Program { static void Main(string[] args) { List<Person> source = Generate(10000, (c) => { return c * 10; }); ... 阅读全文

Global Variables Example

2012-03-08 12:13 by barbarossia, 620 阅读, 收藏,
摘要: You want to store global variablesin your ASP.NET site. Global variables don't need to be copied and only one is needed in the website application. We can use static properties to store single instance data.Overview:This ASP.NET example shows how to use global variables in web sites. It uses C# 阅读全文

How to: Create and Install Temporary Client Certificates in WCF During Development

2012-03-01 12:43 by barbarossia, 130 阅读, 收藏,
摘要: http://msdn.microsoft.com/en-us/library/ff650751.aspx 阅读全文