Reads a value from the Console input.
string firstName = ValueView<string>.QuickRead("First Name:");
Result:
ValueView<string> firstNameInput = new ValueView<string>("First Name:"); firstNameInput.LabelForegroundColor = ConsoleColor.Cyan; string firstName = firstNameInput.Read();
ValueView<int> numberInput = new ValueView<int>("Number:"); numberInput.AcceptDefaultValue = true; numberInput.DefaultValue = 42; int number = numberInput.Read();
There was an error while loading. Please reload this page.