public static CodeFactory GetInstance()
        {
            if (singleton == null)
            {
                lock (syncRoot)
                {
                    if (singleton == null)
                        singleton = new CodeFactory();
                }
            }

            return singleton;
        }
        public static CodeFactory GetInstance()
        {
            if (singleton == null)
            {
                lock (syncRoot)
                {
                    if (singleton == null)
                    {
                        singleton = new CodeFactory();
                    }
                }
            }

            return(singleton);
        }