Category: My Blog

  • Blog
  • Category: My Blog

What is diffrenece between string.compare and string.compareordinal

String.Compare can be or not be case-sensitive, and can incorporate anynumber of comparison options, including culture-sensitivity and sortingrules. That is, it is not comparing the exact strings necessarily, but canbe configured to do various sorts of comparisons. String.CompareOrdinalcompares the numeric values of the individual Unicode characters of thestrings. In other words, it is always case-sensitive,

GetYear Function in Java Script is not working properly in firefox

Hi Folks, I have found that some times in firefox getyear function is not working properly. For example.We define a date value with following. var dtTo = new Date(“11-Feb-2007”); Now if you do alert like Alert(dtTo.getYear()); But in firefix year is displaying like 107.So to fix this issue. I have used getFullYear function like Alert(dtTo.getYear());

SelectMany operator in Linq C#

SelectMany is an important operator in Linq. It takes each element of a sequence to an IEnumerable and flattens the resulting sequences into one sequence. You can find out more information about different overload list from the below link. http://msdn.microsoft.com/en-us/library/system.linq.enumerable.selectmany.aspx In this post I am going to explain How it can be really useful when

Test Driven Development is your friend

I have seen lots developers are not seeing benefits of Test Driven development. When you do Test Driven development there are lots of benefits. So I thought it will be good idea to write a blog post about it. What is Test Driven Development: As per wikipedia Test Driven Development is Test-driven development (TDD) is