public static string GetFormulaFile(FormulaBase fb)
        {
            string assemblyKey = FormulaBase.GetAssemblyKey(fb.GetType().Assembly);

            if (assemblyKey != null)
            {
                foreach (string str2 in htAssembly.Keys)
                {
                    if (htAssembly[str2].ToString() == assemblyKey)
                    {
                        return(str2);
                    }
                }
            }
            return(null);
        }
        /// <summary>
        /// Get formula source xml file of a certain formula.
        /// </summary>
        /// <param name="fb"></param>
        /// <returns></returns>
        public static string GetFormulaFile(FormulaBase fb)
        {
            Assembly a   = fb.GetType().Assembly;
            string   Key = FormulaBase.GetAssemblyKey(a);

            if (Key != null)
            {
                foreach (string s in htAssembly.Keys)
                {
                    if (htAssembly[s].ToString() == Key)
                    {
                        return(s);
                    }
                }
            }
            return(null);
        }