Answers for "SUBSTring by character c#"

C#
-1

C# Substring script

string str = "This is a test";

if(str.Contains("test"))
{
    Console.WriteLine("The sequence 'test' was found");
}
else
{
    Console.WriteLine("The sequence 'test' was not found");
}
Console.ReadKey();
Posted by: Guest on September-30-2021

C# Answers by Framework

Browse Popular Code Answers by Language