From 7f4f6e39ce0f3b1be6af9d557bfc2788f73a82c0 Mon Sep 17 00:00:00 2001 From: Zev Spitz Date: Fri, 22 Nov 2019 02:37:02 +0200 Subject: [PATCH] Use ValueTuple instead of tuple syntax in generic parameters --- Shared/Util/Extensions/IEnumerableTuple.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Shared/Util/Extensions/IEnumerableTuple.cs b/Shared/Util/Extensions/IEnumerableTuple.cs index fe93574..1608172 100644 --- a/Shared/Util/Extensions/IEnumerableTuple.cs +++ b/Shared/Util/Extensions/IEnumerableTuple.cs @@ -13,11 +13,11 @@ public static string Joined(this IEnumerable<(T1, T2)> src, string delim public static void Add(this List<(T1, T2)> lst, T1 item1, T2 item2) => lst.Add((item1, item2)); - public static IEnumerable SelectT(this IEnumerable<(T1, T2)> src, Func selector) => + public static IEnumerable SelectT(this IEnumerable> src, Func selector) => src.Select(x => selector(x.Item1, x.Item2)); - public static IEnumerable SelectT(this IEnumerable<(T1, T2, T3)> src, Func selector) => + public static IEnumerable SelectT(this IEnumerable> src, Func selector) => src.Select(x => selector(x.Item1, x.Item2)); - public static IEnumerable SelectT(this IEnumerable<(T1, T2, T3, T4)> src, Func selector) => + public static IEnumerable SelectT(this IEnumerable> src, Func selector) => src.Select(x => selector(x.Item1, x.Item2, x.Item3, x.Item4)); } }