示例#1
0
        public static Int16 MakeLangId(LanguageId primaryLanguage, SubLanguageId subLanguage)
        {
            UInt16 pl = (UInt16)primaryLanguage, sl = (UInt16)subLanguage;

            return((Int16)(pl << (ushort)10 | sl));
        }
示例#2
0
        public static short MakeLangId(LanguageId primaryLanguage, SubLanguageId subLanguage)
        {
            ushort pl = (ushort)primaryLanguage, sl = (ushort)subLanguage;

            return((short)((pl << 10) | sl));
        }