Browse by Tags
All Tags »
BCL types (RSS)
There are a lot of blogs out that that tries to explain which is what, and why it is the way it is. To those of you who just want to know what the results are. I wrote a quick little app to show what happens. As you can see, DateTime.ToString() formatting
Read More...
.NET VB C# Visual Studio DateTime FormatString
Read More...
.NET Format String Strings C# VB String.Format Microsoft CLR BCL
Read More...
"I wish .NET can compare contents of an Array." - Annoymous Array Comparer Currently, when you compare two arrays with the = operator, we are really using the System.Object's = operator, which only compares the instances. (i.e. this uses reference equality,
Read More...
Since my last post, some people asked me "Well.. great... how do I round up?" Particularly since SQL doesn't do the same rounding as the CLR. SQL's default (and only) rounding algorithm is Rounding Up . i.e. SELECT ROUND(2.45, 2), ROUND(2.45, 1) GO SELECT
Read More...
I have received some requests to talk about how you can control rounding in Whidbey. So here we go.... :) In Everett, the CLR only support one type of rounding. The Math.Round uses Banker's Rounding Algorithm . (This is the algorithm banks use.. thus
Read More...