Get specific character from string in C#
To get specific character from string in C# you can directly use the index of char between to braces[]
.Example
using System;
public class Program
{
public static void Main()
{
string myString = "string";
Console.WriteLine(myString[2]);
}
}
Output
r