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