예제 #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;
		}
예제 #2
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;
		}
예제 #3
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;
		}
예제 #4
0
		//
		// Item 0
		//

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

			items.Write.Add(item0);

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

        public static Many <T> ToMany <T>(this IEnumerable <T> source)
        {
            return(Many.Of(source));
        }
예제 #10
0
 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);
예제 #11
0
 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);
예제 #12
0
 public static Many <T> ToMany <T>(this IEnumerable <T> itemsBefore, T item0, T item1, IEnumerable <T> itemsAfter) =>
 Many.OfAll(itemsBefore, item0, item1, itemsAfter);
예제 #13
0
 public static Many <T> ToMany <T>(this IEnumerable <T> source) =>
 Many.Of(source);
예제 #14
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>);
		}
예제 #15
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));
 }
예제 #16
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));
 }
예제 #17
0
 public static Many <T> ToMany <T>(this IEnumerable <T> itemsBefore, T item0) =>
 Many.OfAll(itemsBefore, item0);