示例#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);