C# equivalent to Java's charAt()?

Viewed 205278

I know we can use the charAt() method in Java get an individual character in a string by specifying its position. Is there an equivalent method in C#?

6 Answers

Simply use String.ElementAt(). It's quite similar to java's String.charAt(). Have fun coding!

Related