StringReader.ReadBlock(Span<Char>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads all the characters from the input string starting at the current position and advances the current position to the end of the input string.
public:
override int ReadBlock(Span<char> buffer);
public override int ReadBlock (Span<char> buffer);
override this.ReadBlock : Span<char> -> int
Public Overrides Function ReadBlock (buffer As Span(Of Char)) As Integer
Parameters
When this method returns, contains the characters read from the current source. If the total number of characters read is zero, the span remains unmodified.
Returns
The total number of characters read into the buffer.
Exceptions
The current string reader instance is closed.
Remarks
ReadBlock(Span<Char>) internally calls Read(Span<Char>) directly.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för