Beispiel #1
0
		//
		// 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;
		}
Beispiel #2
0
		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;
		}
Beispiel #3
0
		//
		// Item 0
		//

		public static Many<T> Of<T>(T item0)
		{
			var items = Many.Of<T>();

			items.Write.Add(item0);

			return items;
		}
Beispiel #4
0
		//
		// 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;
		}
Beispiel #5
0
		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;
		}
Beispiel #6
0
		//
		// 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;
		}
Beispiel #7
0
 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));
 }
Beispiel #8
0
 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));
 }
Beispiel #9
0
 public static Many <T> ToMany <T>(this IEnumerable <T> itemsBefore, T item0, IEnumerable <T> itemsAfter)
 {
     return(Many.Of(itemsBefore, item0, itemsAfter));
 }
Beispiel #10
0
 public static Many <TResult> ToMany <TSource, TResult>(this IEnumerable <TSource> source, Func <TSource, TResult> selectItem)
 {
     return(Many.Of(source.Select(selectItem)));
 }
Beispiel #11
0
        //
        // ToMany
        //

        public static Many <T> ToMany <T>(this IEnumerable <T> source)
        {
            return(Many.Of(source));
        }
Beispiel #12
0
 public static Many <T> ToMany <T>(this IEnumerable <T> source) =>
 Many.Of(source);
Beispiel #13
0
		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>);
		}