Ejemplo n.º 1
0
        internal LambdaExpression GetConstructor(Type t)
        {
            LambdaExpression e;

            ConstructorCache.TryGetValue(t, out e);
            return(e);
        }
Ejemplo n.º 2
0
        private static ConstructorInfo GetOrAddConstructorInfoFromCache(Type module)
        {
            ConstructorInfo ctor;

            if (ConstructorCache.TryGetValue(module, out ctor))
            {
                return(ctor);
            }
            ctor = GetMostAppropriateConstructor(module);
            ConstructorCache.TryAdd(module, ctor);
            return(ctor);
        }