UtilConsoleConsoleChoice(String, ConsoleKey) Method

Allows to prompt the user to select one item from a set of single-character choices.

Definition

Namespace: DevCase.Core.Application.Console
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static ConsoleKey ConsoleChoice(
	string text,
	ConsoleKey[] keys
)

Parameters

text  String
The choice message.
keys  ConsoleKey
The set of single-character choices.

Return Value

ConsoleKey
The resulting ConsoleKey.

Example

Code example 1.
C#
No code example is currently available or this language may not be supported.

See Also