Test for equality between stings. : String Compare : Data Types C# Source Code


Custom Search

C# Source Code » Data Types » String Compare »

 

Test for equality between stings.








    
 

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();

    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Data Types
» String Compare