Test for equality between stings.

image_pdfimage_print
   
   

using System;
using System.Text;

class StringApp {
    static void Main(string[] args) {
        string s1 = "Hello ";
        string s2 = "World!";
        Console.WriteLine("s1 == s2: {0}", s1 == s2);
        Console.WriteLine();

    }
}

   
    
     


This entry was posted in Data Types. Bookmark the permalink.