listExt name
This commit is contained in:
parent
6ea03f65cb
commit
171be3c3bb
|
@ -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())) + ")";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue