String Comparsion on Different Locale Machine

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.
 
A

Asim Qazi

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top