String Object Equals Method C# with Example



String Object Equals Method C# with Example

 using System;

namespace CSharpFundamentals
{
    class StringObjectEqualsMethod
    {
        private static void Main(string[] args)
        {
			String msg = "C# is COOL too";
            Console.WriteLine("Both Strings are Equal: {0}", msg.Equals(msg));
            Console.WriteLine("Both Strings are Equal: {0}", msg.Equals("D# is Cool"));
		}
    }
}
 

0 Comment's

Comment Form

Submit Comment