----------
String.Compare(string1, strin2); Eğer stringler aynı ise fonksiyon geriye 0 döndürür. 1.string 2.stringden küçükse fonksiyon geriye -1, büyükse 1 döndürür.

Örnek Kod:
----------
private void button1_Click(object sender, EventArgs e)
{
int a = String.Compare(textBox1.Text, textBox2.Text);
test.Text = a.ToString();
if (a == 0) sonuc.Text = "Bilgiler Aynı";
else if (a < 0) sonuc.Text = textBox1.Text + " " + textBox2.Text + " den küçük";
else sonuc.Text = textBox1.Text + " " + textBox2.Text + " den büyük";
}