how to get string in string c# code example
Example 1: substring c# after character
var result = str.Substring(str.LastIndexOf('-') + 1);
Example 2: 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