public static Int16 MakeLangId(LanguageId primaryLanguage, SubLanguageId subLanguage) { UInt16 pl = (UInt16)primaryLanguage, sl = (UInt16)subLanguage; return((Int16)(pl << (ushort)10 | sl)); }
public static short MakeLangId(LanguageId primaryLanguage, SubLanguageId subLanguage) { ushort pl = (ushort)primaryLanguage, sl = (ushort)subLanguage; return((short)((pl << 10) | sl)); }