C#: how to get first char of a string?
c#, string
Solution
Just `MyString[0]`. This uses the String.Chars indexer.
Problem
Can the first `char` of a string be retrieved by doing the following? ``` MyString.ToCharArray[0] ```
c#, string
Just `MyString[0]`. This uses the String.Chars indexer.
Can the first `char` of a string be retrieved by doing the following? ``` MyString.ToCharArray[0] ```