Exemplo n.º 1
0
 public static TImpl Create(IReadOnlySeries <TKey, TValue> innerSeries)
 {
     if (Pool == null || !Pool.TryTake(out TImpl instance))
     {
         instance           = new TImpl();
         instance._comparer = KeyComparer <TKey2> .Create(new ConvertComparer(instance));
     }
     instance.Inner = innerSeries;
     return(instance);
 }
Exemplo n.º 2
0
        protected ConvertSeries(IReadOnlySeries <TKey, TValue> inner)
        {
            Inner = inner;

            _comparer = KeyComparer <TKey2> .Create(new ConvertComparer(this as TImpl));
        }
Exemplo n.º 3
0
 public VariantSeries(IReadOnlySeries <TKey, TValue> inner)
 {
     Inner     = inner;
     _comparer = KeyComparer <Variant> .Create(new VariantComparer(Inner));
 }