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); }
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); }
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); } }