/* * Copyright (c) 2024 Vaughn Nugent * * Library: VNLib * Package: VNLib.Utils * File: IIndexable.cs * * IIndexable.cs is part of VNLib.Utils which is part of the larger * VNLib collection of libraries and utilities. * * VNLib.Utils is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published * by the Free Software Foundation, either version 2 of the License, * or (at your option) any later version. * * VNLib.Utils is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with VNLib.Utils. If not, see http://www.gnu.org/licenses/. */ namespace VNLib.Utils { /// /// Provides an interface that provides an indexer /// /// The lookup Key /// The lookup value public interface IIndexable { /// /// Gets or sets the value at the specified index in the collection /// /// The key to lookup the value at /// The value at the specified key TValue this[TKey key] { get; set;} } }