Brecham.Obex — An OBEX library for the .NET Framework

MenuKeyboardInput.ReadLine Method (ReadLineInputIsEmpty, TextReader, TextWriter)

Read a line from the given TextReader, checking for end of input and blank input.

[Visual Basic]
Overloads Public Shared Function ReadLine( _
   ByVal allowBlank As ReadLineInputIsEmpty, _
   ByVal input As TextReader, _
   ByVal output As TextWriter _
) As String
[C#]
public static string ReadLine(
   ReadLineInputIsEmpty allowBlank,
   TextReader input,
   TextWriter output
);

Parameters

allowBlank
Whether empty input is acceptable. That is that the user hits return without any other key being pressed for instance.
input
The TextReader to read from.
output
The TextWriter to write any prompts or messages to.

Return Value

A String containing the input line. Is always non-null, but may be 'empty' depending on allowBlank.

Exceptions

Exception Type Condition
EndOfStreamException The end of the input was reached.

See Also

MenuKeyboardInput Class | Brecham.Obex.Net Namespace | MenuKeyboardInput.ReadLine Overload List