Answers for "how to get string in string c#"

C#
0

substring c# after character

var result = str.Substring(str.LastIndexOf('-') + 1);
Posted by: Guest on January-29-2021
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

C# Answers by Framework

Browse Popular Code Answers by Language