Beispiel #1
0
        public IMethod Find(UnaryOperator op, IType type)
        {
            string  key = ((int)op).ToString() + (int)type.SystemType().Code;
            IMethod m;

            if (!_cache.TryGetValue(key, out m))
            {
                m = op.FindMethod(type);
                if (m != null)
                {
                    _cache.Add(key, m);
                }
            }
            return(m);
        }