Skip to content

Commit

Permalink
Fixed InvalidCastException (#288)
Browse files Browse the repository at this point in the history
Co-authored-by: Niklas Schmiedel <niklas.schmiedel@empowersuite.com>
  • Loading branch information
Descus and Niklas Schmiedel authored Aug 9, 2024
1 parent 7d225dd commit c4f9339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sharprompt/Internal/Paginator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void UpdatePageSize(int newPageSize)
InitializeDefaults(Optional<T>.Create(selectedItem));
}

public IEnumerator<T> GetEnumerator() => (IEnumerator<T>)_filteredItems.GetEnumerator();
public IEnumerator<T> GetEnumerator() => ((IEnumerable<T>)_filteredItems).GetEnumerator();

IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();

Expand Down

0 comments on commit c4f9339

Please sign in to comment.