Tables() : base(IsReference.Default.Get(Type <TIn> .Instance) ? Start.A.Generic(typeof(ReferenceTables <,>)) .Of.Type <ISelect <Func <TIn, TOut>, ITable <TIn, TOut> > >() .In(An.Array(A.Type <TIn>(), A.Type <TOut>())) .Assume() .Assume() : Start.An.Instance(Activations <Func <TIn, TOut>, ConcurrentTables <TIn, TOut> > .Default) .Select(x => x.Get(new ConcurrentDictionary <TIn, TOut>()))) { }
public ReferenceTables(Type type) : base(Start.A.Generic(type) .Of.Type <ITable <TIn, TOut> >() .WithParameterOf <Func <TIn, TOut> >() .Then() .Bind(An.Array(typeof(TIn), typeof(TOut))) .Get() .Then() .Assume() ) { }