public TableEnumerable <T> Find(ConditionalCallback <T> callback) { TableEnumerable <T> newEnumerable = new TableEnumerable <T>(new T[] { }); for (TableConditionalEnumerator <T> i = new TableConditionalEnumerator <T>( (TableEnumerator <T>) this.GetEnumerator(), callback); i.MoveNext();) { newEnumerable.Add(i.Current); } return(newEnumerable); }
public TableConditionalEnumerator(TableEnumerator <T> tableEnumerator, ConditionalCallback <T> callback) : base(tableEnumerator.Table, tableEnumerator.Length) { this.Table = tableEnumerator.Table; this.Length = tableEnumerator.Length; this.Callback = callback; }