Enterra.V8x1C.DOM.BaseObject.GetFromCache C# (CSharp) 메소드

GetFromCache() 보호된 메소드

Get from cache
protected GetFromCache ( string name, GetValueHandler getValue ) : object
name string
getValue GetValueHandler
리턴 object
        protected object GetFromCache(string name, GetValueHandler getValue)
        {
            object obj;
            if (_cache.TryGetValue(name, out obj))
            {
                return obj;
            }

            if (getValue != null)
            {
                obj = getValue.Invoke();

                _cache[name] = obj;
            }

            return obj;
        }