Added constructors from List<T>.

This commit is contained in:
2017-06-08 19:05:35 +01:00
parent afa300a935
commit 6859d3cbb3
9 changed files with 81 additions and 0 deletions

View File

@@ -44,6 +44,11 @@ namespace Extents
backend = new List<Tuple<int, int>>();
}
public ExtentsInt(List<Tuple<int, int>> list)
{
backend = list.OrderBy(t => t.Item1).ToList();
}
public int Count { get { return backend.Count; } }
public void Add(int item)