2010-01-26

.net links 2010/1/26

Use .NET Built-in Methods to Save Time and Headaches 

  TryParse() and File.WriteAllText(file, str) are really useful to me!

If you are using a loop, you're doing it wrong

if you can use Linq, do not use for and foreach

.Net Tip: Convert a String to Title Case

string helloWorld = "hello world haha ds s w";

Console.WriteLine(
    System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(helloWorld));

可以写个扩展方法

No comments: