From bfd7702939a162f62c46375762ceec9cd524f66a Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Thu, 6 Apr 2023 08:29:39 +0300 Subject: DI Refactoring --- RhSolutions.ExcelExtensions/ColumnEnumerator.cs | 54 ------------------------- 1 file changed, 54 deletions(-) delete mode 100644 RhSolutions.ExcelExtensions/ColumnEnumerator.cs (limited to 'RhSolutions.ExcelExtensions/ColumnEnumerator.cs') diff --git a/RhSolutions.ExcelExtensions/ColumnEnumerator.cs b/RhSolutions.ExcelExtensions/ColumnEnumerator.cs deleted file mode 100644 index 9880b5d..0000000 --- a/RhSolutions.ExcelExtensions/ColumnEnumerator.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System.Collections; - -namespace RhSolutions.ExcelExtensions; - -public class ColumnEnumerator : IEnumerator -{ - public Range Range { get; } - public Table ParentTable { get; } - private int position = 0; - object IEnumerator.Current - { - get - { - return Current; - } - } - - public TableCell Current - { - get - { - try - { - return new TableCell(Range.Cells[position, 1], ParentTable); - } - catch (IndexOutOfRangeException) - { - throw new InvalidOperationException(); - } - } - } - - public ColumnEnumerator(Range range, Table table) - { - Range = range; - ParentTable = table; - } - - public bool MoveNext() - { - position++; - return (position <= Range.Rows.Count); - } - - public void Reset() - { - position = 0; - } - - public void Dispose() - { - - } -} -- cgit v1.2.3