3
The method char.Parse()
exists basically to convert a character of a string
on a die of the kind char
as simply as possible.
This method returns the character that exists within the string
. That one string
can not have more than one character, otherwise it gives error. So if you have a "A"
, will now have a 'A'
. Note the delimiters I used, it’s the same character but of different types. It’s like having a number 1 with short
, or how int
or how long
, all are number 1 but the data types are different.
The function does not return 115, returns only the s
even, Visual Studio is showing you an equivalent auxiliary number of this character, in this case it is an ASCII or Unicode code. This data is just to help, what matters is the character s
, it may be that its context has some use to know the number, but it is less common.
To documentation says the function returns a Unicode character. What can be considered a character? can help you better understand the subject
– Rafael Tavares