Hi everybody,
This is very simple quick question. I created a char property called PersonType. I also have a string letterCode (it declared a string, but it is actually one letter character).
How can I do
this.PersonType = letterCode ;
I tried this.PersonType = (char) letterCode; but this didn't work.
Thanks in advance.
UPDATE. Took a minute break and the answer came to me.
this.PersonType = Convert.ToChar(letterCode);
If it's not broken, fix it until it is.
My Blog