/// <summary> /// Applies the Take operation on the given collection. /// </summary> /// <param name="collection">The collection to take from</param> /// <param name="takeCount">How many elements to take.</param> /// <returns>Collection with the applied Take operation.</returns> public static QueryCollectionValue Take(this QueryCollectionValue collection, int takeCount) { ExceptionUtilities.CheckArgumentNotNull(collection, "collection"); return(collection.Take(collection.Type.EvaluationStrategy.IntegerType.CreateValue(takeCount))); }