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