Пример #1
0
 public static BackgroundGenerator <T> ForEach <A>(IEnumerable <A> Data, Func <A, T> Body, int MaxCache = -1, bool AutoStart = true)
 {
     return(BackgroundGenerator <T> .FromEnumerator(Data.Select(Body).GetEnumerator(), MaxCache, AutoStart));
 }
Пример #2
0
 public static BackgroundGenerator <T> AsBackgroundGenerator <T>(this IEnumerable <T> Base, int MaxCache = -1)
 {
     return(BackgroundGenerator <T> .FromEnumerator(Base.GetEnumerator(), MaxCache));
 }