protected List <string> GetSimilarDetails(string Word, out string CollectionWord) { CyrData data = new CyrData(); CollectionWord = data.GetSimilar(Word, words.Keys.ToList()); if (CollectionWord.IsNullOrEmpty()) { return(null); } return(this.GetDetails(CollectionWord)); }
protected T GetSimilarDetails <T>(string Word, Dictionary <string, T> Collection, out string CollectionWord) { CyrData data = new CyrData(); CollectionWord = data.GetSimilar(Word, Collection.Keys.ToList(), this.AdjectiveMinSameLetters); if (CollectionWord.IsNullOrEmpty()) { return(default(T)); } return(this.GetDetails(CollectionWord, Collection)); }
protected string GetSimilarDetails(string Word, out string CollectionWord) { CyrData data = new CyrData(); CollectionWord = data.GetSimilar(Word, words.Keys.ToList()); if (CollectionWord.IsNullOrEmpty()) { return null; } return this.GetDetails(CollectionWord); }