internal LambdaExpression GetConstructor(Type t) { LambdaExpression e; ConstructorCache.TryGetValue(t, out e); return(e); }
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); }