Пример #1
0
        /// <summary>
        /// Inserts the items into the specified index within the input collection.
        /// </summary>
        /// <typeparam name="TInput">The type of the input.</typeparam>
        /// <param name="index">The index.</param>
        /// <param name="itemsToAdd">The items to add.</param>
        /// <returns></returns>
        public static InputAwareStep <TInput> Insert <TInput>(int index, params TInput[] itemsToAdd)
        {
            var result = new InputAwareStep <TInput>(
                source => source.InsertRange(index, itemsToAdd)
                );

            return(result);
        }
Пример #2
0
        /// <summary>
        /// Moves the items to the specified index within the input collection.
        /// </summary>
        /// <typeparam name="TInput">The type of the input.</typeparam>
        /// <param name="index">The index.</param>
        /// <param name="itemsToMove">The items to move.</param>
        /// <returns></returns>
        public static InputAwareStep <TInput> Move <TInput>(int index, params TInput[] itemsToMove)
        {
            var result = new InputAwareStep <TInput>(
                source => source.MoveRange(index, itemsToMove)
                );

            return(result);
        }
Пример #3
0
        /// <summary>
        /// Removes the specified items from the input collection.
        /// </summary>
        /// <typeparam name="TInput">The type of the input.</typeparam>
        /// <param name="itemsToRemove">The items to remove.</param>
        /// <returns></returns>
        public static InputAwareStep <TInput> Remove <TInput>(params TInput[] itemsToRemove)
        {
            var result = new InputAwareStep <TInput>(
                source => source.RemoveRange(itemsToRemove)
                );

            return(result);
        }
Пример #4
0
        /// <summary>
        /// Adds the items to the input collection.
        /// </summary>
        /// <typeparam name="TInput">The type of the input.</typeparam>
        /// <param name="itemsToAdd">The items to add.</param>
        /// <returns></returns>
        public static InputAwareStep <TInput> Add <TInput>(params TInput[] itemsToAdd)
        {
            var result = new InputAwareStep <TInput>(
                source => source.AddRange(itemsToAdd)
                );

            return(result);
        }