bool IsHexDigit( char c ) { if( Char.IsDigit( c ) ) return true; if( 'a' <= c && c <= 'f' ) return true; if( 'A' <= c && c <= 'F' ) return true; return false; } }