c# get char in string code example
Example 1: c# get char from string
char first = mystring[0];
char second = mystring[1];
char third = mystring[2];
Example 2: c# get certain character from string
string myString = "string";
// outputs r
print(mystring[2]);