You can index into a string in C# like an array, and you get the character at that index.
Example:
In Java, you would say
str.charAt(8);
In C#, you would say
str[8];
More Related Contents:
- Java equivalents of C# String.Format() and String.Join()
- Is there an equivalent to the Scanner class in C# for strings?
- Java equivalent of C#’s verbatim strings with @
- Identify if a string is a number
- Are string.Equals() and == operator really same? [duplicate]
- How can I strip HTML tags from a string in ASP.NET?
- Most efficient way to remove special characters from string
- Serialize an object to string
- What does $ mean before a string?
- Converting string to double in C#
- Find text in string with C#
- Is there a C# case insensitive equals operator?
- How to remove all white space from the beginning or end of a string?
- Find Nth occurrence of a character in a string
- Characters in string changed after downloading HTML from the internet
- What are major differences between C# and Java?
- Easier way of writing null or empty?
- How can I get a character in a string by index?
- Pass C# string to C++ and pass C++ result (string, char*.. whatever) to C#
- C# Java HashMap equivalent
- How do I capitalize first letter of first name and last name in C#?
- Are Java and C# regular expressions compatible?
- Truncate string on whole words in .NET C#
- How to call Java code from C#?
- Delete last char of string
- How to execute a Java program from C#?
- AES Encryption in Java and Decryption in C#
- string.Join on a List or other type
- What does the @ prefix do on string literals in C#
- Regular expression to find and remove duplicate words