Method CopyTo
CopyTo(ExSpan<T>)
Copies the contents of this span into destination span. If the source and destinations overlap, this method behaves as if the original values in a temporary location before the destination is overwritten (将此跨度的内容复制到目标跨度. 如果源和目标重叠, 则此方法的行为就像覆盖目标之前临时位置中的原始值一样).
public void CopyTo(ExSpan<T> destination)
Parameters
destination
ExSpan<T>The destination span (目标跨度).
Exceptions
- ArgumentException
Thrown when the destination span is shorter than the source span.