public static bool ucs2_definedp( int c ) { // !!!!! i.e. between 0x0000 and 0xFFFF : have to look for a better implementation return ((Char.MinValue <= c) && (c <= Char.MaxValue)); }