예제 #1
0
        public Subroutine Get(Key key)
        {
            if (this.cache.ContainsKey(key))
            {
                return(this.cache [key]);
            }

            Subroutine sub = BuildNewSubroutine(key);

            this.cache.Add(key, sub);
            if (sub != null)
            {
                sub.Initialize();
            }
            return(sub);
        }