String contains
In this chapter you will learn:
String contains
We can use Contains method from string to search a substring.
using System;//from j a va 2 s . co m
class Sample
{
public static void Main()
{
string s = "java2s.com";
Console.WriteLine(s.Contains("java"));
}
}
The output:
Next chapter...
What you will learn in the next chapter:
Home » C# Tutorial » String