// // Item 2 // public static Many<T> Of<T>(T item0, T item1, T item2) { var items = Many.Of(item0, item1); items.Write.Add(item2); return items; }
public static Many<T> Of<T>(IEnumerable<T> itemsBefore, T item0, IEnumerable<T> itemsAfter) { var items = Many.Of(itemsBefore, item0); items.Write.AddRange(itemsAfter); return items; }
public static Many<T> Of<T>(T item0, T item1, T item2, IEnumerable<T> itemsAfter) { var items = Many.Of(item0, item1, item2); items.Write.AddRange(itemsAfter); return items; }
// // Item 0 // public static Many<T> Of<T>(T item0) { var items = Many.Of<T>(); items.Write.Add(item0); return items; }
// // Item 3 after // public static Many<T> Of<T>(IEnumerable<T> itemsBefore, T item0, T item1, T item2, T item3) { var items = Many.Of(itemsBefore, item0, item1, item2); items.Write.Add(item3); return items; }
// // Item 0 after // public static Many<T> Of<T>(IEnumerable<T> itemsBefore, T item0) { var items = Many.Of(itemsBefore); items.Write.Add(item0); return items; }
public static Many <T> ToMany <T>(this IEnumerable <T> itemsBefore, T item0, IEnumerable <T> itemsAfter) { return(Many.Of(itemsBefore, item0, itemsAfter)); }
public static Many <TResult> ToMany <TSource, TResult>(this IEnumerable <TSource> source, Func <TSource, TResult> selectItem) { return(Many.Of(source.Select(selectItem))); }
// // ToMany // public static Many <T> ToMany <T>(this IEnumerable <T> source) { return(Many.Of(source)); }
public static Many <T> ToMany <T>(this IEnumerable <T> itemsBefore, T item0, T item1, T item2, T item3, params T[] itemsAfter) => Many.OfAll(itemsBefore, item0, item1, item2, item3, itemsAfter);
public static Many <T> ToMany <T>(this IEnumerable <T> itemsBefore, T item0, T item1, T item2, T item3) => Many.OfAll(itemsBefore, item0, item1, item2, item3);
public static Many <T> ToMany <T>(this IEnumerable <T> itemsBefore, T item0, T item1, IEnumerable <T> itemsAfter) => Many.OfAll(itemsBefore, item0, item1, itemsAfter);
public static Many <T> ToMany <T>(this IEnumerable <T> source) => Many.Of(source);
public static Many<T> Of<T>(IEnumerable<T> itemsBefore, T item0, T item1, T item2, T item3, params T[] itemsAfter) { return Many.Of(itemsBefore, item0, item1, item2, item3, itemsAfter as IEnumerable<T>); }
public static Many <T> ToMany <T>(this IEnumerable <T> itemsBefore, T item0, T item1, T item2, T item3) { return(Many.Of(itemsBefore, item0, item1, item2, item3)); }
public static Many <T> ToMany <T>(this IEnumerable <T> itemsBefore, T item0, T item1, T item2, T item3, params T[] itemsAfter) { return(Many.Of(itemsBefore, item0, item1, item2, item3, itemsAfter)); }
public static Many <T> ToMany <T>(this IEnumerable <T> itemsBefore, T item0) => Many.OfAll(itemsBefore, item0);