public static T[] GetPart <T>(T[] ary, int startIndex, int count)
 {
     return(CollectionHelper.GetPart <T>(ary, startIndex, count, false));
 }
        /// <summary>
        /// ContainsSpecification 集合中是否包含满足predicate条件的元素。
        /// </summary>
        public static bool ContainsSpecification <TObject>(IEnumerable <TObject> source, Predicate <TObject> predicate)
        {
            TObject specification;

            return(CollectionHelper.ContainsSpecification <TObject>(source, predicate, out specification));
        }
 /// <summary>
 /// ActionOnEach  对集合中的每个元素执行action。
 /// </summary>
 public static void ActionOnEach <TObject>(IEnumerable <TObject> collection, Action <TObject> action)
 {
     CollectionHelper.ActionOnSpecification <TObject>(collection, action, null);
 }