Sequence T  Patch Method A Sandcastle Documented Class Library
Returns a copy of this sequence where a slice of its elements is replaced by a patch sequence.

Namespace: Sequences
Assembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax
public ISequence<T> Patch(
	int from,
	IEnumerable<T> patch,
	int replaced
)

Parameters

from
Type: System Int32
The index of the first replaced element.
patch
Type: System.Collections.Generic IEnumerable T 
The elements with which to replace this sequence's slice.
replaced
Type: System Int32
The number of elements to delete from this sequence.

Return Value

Type: ISequence T 
A new sequence consisting of all elements of this sequence except that replaced elements starting from from are replaced by patch.

Implements

ISequence T  Patch(Int32, IEnumerable T , Int32)
See Also