示例#1
0
        public ISearchResult Search()
        {
            ISearchResult result = null;

            foreach (var item in contents)
            {
                result = item.IsKey() ?
                         item :
                         item.Search();

                if (result != null && result.IsKey())
                {
                    break;
                }
            }

            return(result);
        }