Пример #1
0
        public override WordInfo SearchWord(string text)
        {
            if (!ContainsWord(text))
            {
                return(null);
            }
            WordInfo info1   = IWordDictionaryHelper.ArraySearchWord(text, ZMembers);
            WordInfo info2   = IWordDictionaryHelper.ArraySearchWord(text, ZMethods);
            WordInfo newWord = WordInfo.Merge(info1, info2);

            return(newWord);
        }
Пример #2
0
        public WordInfo SearchWord(string text)
        {
            if (!ContainsWord(text))
            {
                return(null);
            }
            ZType    ztype = SearchZTypeOne(text);
            WordInfo info0 = null;

            if (ztype != null)
            {
                info0 = new WordInfo(text, WordKind.TypeName, ztype);
            }
            WordInfo info1   = IWordDictionaryHelper.EnumerableSearchWord(text, EnumTypes);
            WordInfo info2   = IWordDictionaryHelper.EnumerableSearchWord(text, ClassTypes);
            WordInfo newWord = WordInfo.Merge(info0, info1, info2);

            return(newWord);
        }
Пример #3
0
        public WordInfo SearchWord(string text)
        {
            List <WordInfo> words = new List <WordInfo>();

            foreach (IWordDictionary dict in this)
            {
                WordInfo word = dict.SearchWord(text);
                if (word != null)
                {
                    words.Add(word);
                }
            }
            if (words != null)
            {
                WordInfo newWord = WordInfo.Merge(words.ToArray());
                return(newWord);
            }
            else
            {
                return(null);
            }
        }