internal virtual TElement[] SortSource() { var list = JsImplEnumerable.ToArray(source).AsJsArray(); list.sort(Compare); return(list.AsArray()); }
public override IEnumerable <TResult2> Select <TResult2>(Func <TResult, TResult2> selector) { return(new JsImplEnumerable.WhereSelectListIterator <TSource, TResult2>(this.source, this.predicate, JsImplEnumerable.CombineSelectors <TSource, TResult, TResult2>(this.selector, selector))); }
public override IEnumerable <TSource> Where(Func <TSource, bool> predicate) { return(new JsImplEnumerable.WhereListIterator <TSource>(this.source, JsImplEnumerable.CombinePredicates <TSource>(this.predicate, predicate))); }