using System.Collections;
namespace Terminal.Gui.Views;
///
/// This implementation is based on a static of objects.
internal class CollectionNavigator : CollectionNavigatorBase, IListCollectionNavigator
{
/// Constructs a new CollectionNavigator.
public CollectionNavigator () { }
/// Constructs a new CollectionNavigator for the given collection.
///
public CollectionNavigator (IList collection) { Collection = collection; }
///
public IList Collection { get; set; }
///
protected override object ElementAt (int idx) { return Collection [idx]; }
///
protected override int GetCollectionLength () { return Collection.Count; }
}