Sefer Algan'ın Günlüğü

Günlüğüme hoşgeldiniz...

The case of Turkish İ & Turkish I

Türkçe'deki büyük i ve I ile ilgili probleme microsoft'ta el atilmis olsa gerek...


As one of the Internationalization representatives, it is my responsibility to make sure that our automation framework code uses ToUpper() & ToLower() correctly. In almost all cases this does not matter and therefore people don't bother to remember this at all, but if you call the To...() methods with no arguments, you get the conversion based on your system locale, and in one case, your code will break.

This block of code

switch (myType.ToLower())
{
   case "integer" : ;  

}

will fail if user enters "INTEGER" on Turkish locale

Devami için tiklayin...

Leave a Comment

(required) 

(required) 

(optional)

(required)