コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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);
        }