Created
February 18, 2020 00:13
-
-
Save hk1ll3r/1a17f1f3c2c97bb843393fb3536a3ae7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class GenericToStringExts { | |
| public static string ToStringExt<T>(this List<T> list) => "[" + string.Join(", ", list) + "]"; | |
| public static string ToStringExt<T>(this List<List<T>> listOfLists) => "[" + string.Join(", ", listOfLists.Select(l => l.ToStringExt())) + "]"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment