Ejemplo n.º 1
0
 public BufferedEnumerable(IEnumerable sequence, SparseList <object> values)
 {
     Sequence = sequence;
     Values   = values;
 }
Ejemplo n.º 2
0
 public BufferedEnumerator(IEnumerable sequence, int prefixLength = 10, int suffixLength = 20)
 {
     this.sequence = sequence;
     enumerator    = sequence.GetEnumerator();
     buffer        = new SparseList <object>(prefixLength, suffixLength);
 }