How find last char in a string. Ex: text is
text is
Result => s
s
Hi Haha ! You could use someString.Remove(0, someString.Length - 1) to do that.
someString.Remove(0, someString.Length - 1)
Example code:
String someString = "text is"; String lastCharacter = someString.Remove(0, someString.Length - 1); Console.WriteLine(lastCharacter);
Result: s