Answers for "how to select a part of a string in c#"

C#
3

how to look for substring in string in c#

String phrase = "this is the ultimate string";

Console.WriteLine(phrase.Contains("this")); //returns True
Console.WriteLine(phrase.Contains("python")); //returns False
Posted by: Guest on April-29-2020

Code answers related to "how to select a part of a string in c#"

C# Answers by Framework

Browse Popular Code Answers by Language