その先にあるもの…

char to int 본문

프로그래밍/C#

char to int

specialJ 2014. 12. 4. 01:08

char c = '1';


int i = Convert.Int32(c);    //    i = 48


int i = (int)Char.GetNumericValue( c );    //    i = 1

int i = c & 0x0f;                                    // i = 1

Comments