ReadOnlySequence<T>.Slice 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Slice(Int64) |
根据当前 ReadOnlySequence<T> 形成一个切片,它在所指定的索引处开始并一直到只读序列的末尾。 |
Slice(SequencePosition) |
根据当前 ReadOnlySequence<T> 形成一个切片,它在所指定的序列位置处开始并一直到只读序列的末尾。 |
Slice(Int32, Int32) |
根据当前 ReadOnlySequence<T> 形成一个切片,它在 |
Slice(Int32, SequencePosition) |
根据当前 ReadOnlySequence<T> 形成一个切片,它在 |
Slice(Int64, Int64) |
根据所给定的 ReadOnlySequence<T> 形成一个切片,它在 |
Slice(Int64, SequencePosition) |
根据当前 ReadOnlySequence<T> 形成一个切片,它在 |
Slice(SequencePosition, Int32) |
根据当前 ReadOnlySequence<T> 形成一个切片,它在 |
Slice(SequencePosition, Int64) |
根据当前 ReadOnlySequence<T> 形成一个切片,它在 |
Slice(SequencePosition, SequencePosition) |
根据当前 ReadOnlySequence<T> 形成一个切片,它在 |
Slice(Int64)
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
根据当前 ReadOnlySequence<T> 形成一个切片,它在所指定的索引处开始并一直到只读序列的末尾。
public:
System::Buffers::ReadOnlySequence<T> Slice(long start);
public System.Buffers.ReadOnlySequence<T> Slice (long start);
member this.Slice : int64 -> System.Buffers.ReadOnlySequence<'T>
Public Function Slice (start As Long) As ReadOnlySequence(Of T)
参数
- start
- Int64
开始此切片处的起始索引。
返回
一个切片,它在索引 start
处开始并一直到当前只读序列的末尾。
适用于
Slice(SequencePosition)
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
根据当前 ReadOnlySequence<T> 形成一个切片,它在所指定的序列位置处开始并一直到只读序列的末尾。
public:
System::Buffers::ReadOnlySequence<T> Slice(SequencePosition start);
public System.Buffers.ReadOnlySequence<T> Slice (SequencePosition start);
member this.Slice : SequencePosition -> System.Buffers.ReadOnlySequence<'T>
Public Function Slice (start As SequencePosition) As ReadOnlySequence(Of T)
参数
- start
- SequencePosition
开始此切片处的起始(含)SequencePosition。
返回
一个切片,它在序列位置 start
处开始并一直到当前只读序列的末尾。
适用于
Slice(Int32, Int32)
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
根据当前 ReadOnlySequence<T> 形成一个切片,它在 start
处开始且包含 length
个项目。
public:
System::Buffers::ReadOnlySequence<T> Slice(int start, int length);
public System.Buffers.ReadOnlySequence<T> Slice (int start, int length);
member this.Slice : int * int -> System.Buffers.ReadOnlySequence<'T>
Public Function Slice (start As Integer, length As Integer) As ReadOnlySequence(Of T)
参数
- start
- Int32
开始切片处的索引。
- length
- Int32
切片的长度。
返回
一个切片,它包含从索引 start
处开始的当前实例中的 length
元素。
适用于
Slice(Int32, SequencePosition)
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
根据当前 ReadOnlySequence<T> 形成一个切片,它在 start
处开始并在 end
处(不含)结束。
public:
System::Buffers::ReadOnlySequence<T> Slice(int start, SequencePosition end);
public System.Buffers.ReadOnlySequence<T> Slice (int start, SequencePosition end);
member this.Slice : int * SequencePosition -> System.Buffers.ReadOnlySequence<'T>
Public Function Slice (start As Integer, end As SequencePosition) As ReadOnlySequence(Of T)
参数
- start
- Int32
开始切片处的索引。
- end
- SequencePosition
切片的末尾 SequencePosition(不含)。
返回
一个切片,它包含从 start
索引到当前只读序列中的 end
序列位置(不含)之间的项目。
适用于
Slice(Int64, Int64)
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
根据所给定的 ReadOnlySequence<T> 形成一个切片,它在 start
处开始,并包含 length
个项目。
public:
System::Buffers::ReadOnlySequence<T> Slice(long start, long length);
public System.Buffers.ReadOnlySequence<T> Slice (long start, long length);
member this.Slice : int64 * int64 -> System.Buffers.ReadOnlySequence<'T>
Public Function Slice (start As Long, length As Long) As ReadOnlySequence(Of T)
参数
- start
- Int64
开始切片处的索引。
- length
- Int64
切片的长度。
返回
一个切片,它包含从索引 start
处开始的当前实例中的 length
元素。
适用于
Slice(Int64, SequencePosition)
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
根据当前 ReadOnlySequence<T> 形成一个切片,它在 start
处开始并在 end
处(不含)结束。
public:
System::Buffers::ReadOnlySequence<T> Slice(long start, SequencePosition end);
public System.Buffers.ReadOnlySequence<T> Slice (long start, SequencePosition end);
member this.Slice : int64 * SequencePosition -> System.Buffers.ReadOnlySequence<'T>
Public Function Slice (start As Long, end As SequencePosition) As ReadOnlySequence(Of T)
参数
- start
- Int64
开始切片处的索引。
- end
- SequencePosition
切片的结尾(不含)。
返回
一个切片,它包含从 start
索引到当前只读序列中的 end
序列位置(不含)之间的项目。
适用于
Slice(SequencePosition, Int32)
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
根据当前 ReadOnlySequence<T> 形成一个切片,它在 start
处开始且包含 length
个项目。
public:
System::Buffers::ReadOnlySequence<T> Slice(SequencePosition start, int length);
public System.Buffers.ReadOnlySequence<T> Slice (SequencePosition start, int length);
member this.Slice : SequencePosition * int -> System.Buffers.ReadOnlySequence<'T>
Public Function Slice (start As SequencePosition, length As Integer) As ReadOnlySequence(Of T)
参数
- start
- SequencePosition
开始此切片处的起始(含)SequencePosition。
- length
- Int32
切片的长度。
返回
一个切片,它包含从序列位置 start
开始的当前实例中的 length
元素。
适用于
Slice(SequencePosition, Int64)
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
根据当前 ReadOnlySequence<T> 形成一个切片,它在 start
处开始且包含 length
个项目。
public:
System::Buffers::ReadOnlySequence<T> Slice(SequencePosition start, long length);
public System.Buffers.ReadOnlySequence<T> Slice (SequencePosition start, long length);
member this.Slice : SequencePosition * int64 -> System.Buffers.ReadOnlySequence<'T>
Public Function Slice (start As SequencePosition, length As Long) As ReadOnlySequence(Of T)
参数
- start
- SequencePosition
开始此切片处的起始(含)SequencePosition。
- length
- Int64
切片的长度。
返回
一个切片,它包含从序列位置 start
开始的当前实例中的 length
元素。
适用于
Slice(SequencePosition, SequencePosition)
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
- Source:
- ReadOnlySequence.cs
根据当前 ReadOnlySequence<T> 形成一个切片,它在 start
处开始并在 end
处(不含)结束。
public:
System::Buffers::ReadOnlySequence<T> Slice(SequencePosition start, SequencePosition end);
public System.Buffers.ReadOnlySequence<T> Slice (SequencePosition start, SequencePosition end);
member this.Slice : SequencePosition * SequencePosition -> System.Buffers.ReadOnlySequence<'T>
Public Function Slice (start As SequencePosition, end As SequencePosition) As ReadOnlySequence(Of T)
参数
- start
- SequencePosition
开始此切片处的起始(含)SequencePosition。
- end
- SequencePosition
切片的末尾 SequencePosition(不含)。
返回
一个切片,它包含从 start
序列位置到当前只读序列中的 end
序列位置(不含)之间的项目。