public Type GetAssembledType(Type requestedType) { ArgumentUtility.CheckNotNull("requestedType", requestedType); var typeID = _typeAssembler.ComputeTypeID(requestedType); return(_typeCache.GetOrCreateType(typeID)); }
private Delegate CreateConstructorCall(ConstructionKey key) { var assembledType = _typeCache.GetOrCreateType(key.TypeID); return(_constructorDelegateFactory.CreateConstructorCall(key.TypeID.RequestedType, assembledType, key.DelegateType, key.AllowNonPublic)); }