CSharp examples for Language Basics:string
String Contains String
using System;/*from w ww .ja va 2 s. c o m*/ class MainClass { static void Main(string[] args) { string str = "This is test"; if (str.Contains("test")) { Console.WriteLine("The sequence 'test' was found."); } } }