how to get a substring from one index to another in c# code example
Example 1: substring c# after character
var result = str.Substring(str.LastIndexOf('-') + 1);
Example 2: c# get certain character from string
string myString = "string";
// outputs r
print(mystring[2]);