diff --git a/sorting/dotnet/Sorting/ListExt.cs b/sorting/dotnet/Sorting/ListExt.cs new file mode 100644 index 0000000..79eafa3 --- /dev/null +++ b/sorting/dotnet/Sorting/ListExt.cs @@ -0,0 +1,13 @@ +using System.Collections.Generic; +using System.Linq; + +namespace Sorting +{ + public static class ListExt + { + public static string AsString(this List list) + { + return "(" + string.Join(", ", list.Select(x => x.ToString())) + ")"; + } + } +} \ No newline at end of file