String Comparsion on Different Locale Machine

  • Thread starter Thread starter Asim Qazi
  • Start date Start date
A

Asim Qazi

Hi
i m using

string szServerType = "Windows";
if(szServerType.ToUpper() == "WINDOWS")
{
//do some thing
}



it runs fine on my Machine, but when i try to run this code on my
clients machine which is in Turkish ... it dosnt compare this and return
false.


any help how to comapre plan string with same results on every locale OS.


any help would be appriciateable.



aSIM.
 
thanks Skalecki,
.Equals("windows", StringComparison.InvariantCultureIgnoreCase) is
supported in 2.0 only n i m working on 1.1, anyother 1.1 compatible
solution.




aSIM.
 
Back
Top