Пример #1
0
        public static string convertBoolHelpermnemonic(string a)
        {
            string c;

            if (PICSmnemonicDic.ContainsKey(a))
            {
                c = PICSmnemonicDic[a];
            }
            else
            {
                c = "False";
                lgstr.war("{convertBoolHelpermnemonic} KeyNotFound  " + "-> " + a);
            }

            return(c);
        }
Пример #2
0
        /// <summary>
        /// This function will be used to get value from a dictionary. no key found treated as False.
        /// </summary>
        /// <param name="a">
        /// this is the string will be searched in the dictionary
        /// </param>
        /// <param name="b">
        /// The dictionary
        /// </param>
        /// <returns></returns>
        public static string convertBoolHelper(string a)
        {
            string c;

            if (!fmnemonic && picssupport.ContainsKey(a))
            {
                c = picssupport[a];
            }
            else if (fmnemonic && PICSmnemonicDic.ContainsKey(a))
            {
                c = PICSmnemonicDic[a];
            }
            else
            {
                c = "False";
                lgstr.war("{convertBoolHelper} KeyNotFound " + "-> " + a);
            }

            return(c);
        }