listExt name

This commit is contained in:
Wouter Groeneveld 2018-03-21 17:19:24 +01:00
parent 6ea03f65cb
commit 171be3c3bb
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
using System.Collections.Generic;
using System.Linq;
namespace Sorting
{
public static class ListExt
{
public static string AsString(this List<int> list)
{
return "(" + string.Join(", ", list.Select(x => x.ToString())) + ")";
}
}
}