String Contains C# with Example



String Contains C# with Example

 using System;

namespace CSharpFundamentals
{
    class StringContains
    {
        private static void Main(string[] args)
        {
            String msg = "C# is COOL ";
            Console.WriteLine("Is # Exist in String: {0}", msg.Contains("#"));
		}
    }
}
 

0 Comment's

Comment Form