// Copyright (c) Dr. Dirk Lellinger. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SlobViewer { public interface IWordDictionary { string FileName { get; set; } /// Gets all keys of this dictionary. /// string[] GetKeys(); /// /// Gets a number of keys including the key given in (if found). /// /// The key to search for. /// The number of keys following the given key. /// A array of keys, including the key given (if it is found in the dictionary). The size of the array is equal to or less than . string[] GetKeys(string key, int count); /// /// Try to get the content for the specified . /// /// The key for which the content should be retrieved.. /// If successfull, contains the retrieved content and the content identification. /// True if the content with the specified key was found; otherwise, false. bool TryGetValue(string key, out (string Content, string ContentId) value); /// /// Gets the with the specified key. /// /// /// The value for the specified key. /// /// The key. /// The value for the specified key. (string Content, string ContentId) this[string key] { get; } } }