SequenceReader<T>.TryPeek Método
Definição
Sobrecargas
| TryPeek(T) |
Espia o próximo valor sem avançar o leitor.Peeks at the next value without advancing the reader. |
| TryPeek(Int64, T) |
Inspeciona o próximo valor no deslocamento especificado sem avançar o leitor.Peeks at the next value at the specified offset without advancing the reader. |
TryPeek(T)
Espia o próximo valor sem avançar o leitor.Peeks at the next value without advancing the reader.
public:
bool TryPeek([Runtime::InteropServices::Out] T % value);
public bool TryPeek (out T value);
member this.TryPeek : 'T -> bool
Public Function TryPeek (ByRef value As T) As Boolean
Parâmetros
- value
- T
O próximo valor ou o valor padrão se estiver no fim do leitor.The next value, or the default value if at the end of the reader.
Retornos
true se o leitor não estiver no seu fim e a operação de espiada for bem-sucedida; false se estiver no final do leitor.true if the reader is not at its end and the peek operation succeeded; false if at the end of the reader.
Aplica-se a
TryPeek(Int64, T)
Inspeciona o próximo valor no deslocamento especificado sem avançar o leitor.Peeks at the next value at the specified offset without advancing the reader.
public:
bool TryPeek(long offset, [Runtime::InteropServices::Out] T % value);
public bool TryPeek (long offset, out T value);
member this.TryPeek : int64 * 'T -> bool
Public Function TryPeek (offset As Long, ByRef value As T) As Boolean
Parâmetros
- offset
- Int64
O deslocamento da posição atual.The offset from current position.
- value
- T
O próximo valor ou o valor padrão se estiver no fim do leitor.The next value, or the default value if at the end of the reader.
Retornos
true se o leitor não estiver no seu fim e a operação de espiada for bem-sucedida; false se estiver no final do leitor.true if the reader is not at its end and the peek operation succeeded; false if at the end of the reader.