plz i want to now how comper between two sting on c#
You should buy a C# book or read some online tutorials. You can't learn C# at this level via forum posts.
It depends what you want to compare. If you want to compare if they are both the same, then the == operator will do it
if (string1 == string2)
If you want to do a case insensitive compare, then make them both lower case:
if (string1.ToLower() == string2.ToLower())
There's many other ways to compare strings ( such as Contains ), but really, again, at this level, you need to work through a book if you want to learn C#.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)