مقایسه دو رشته از نظر بزرگ و کوچکی

 

string  a = "mohsen";
string  b = "MOHSEN";
Console.WriteLine(a.CompareTo(b));