/// <summary> /// Reads a value from the console using a <see cref="ValueControl{T}"/> with default configuration. /// </summary> /// <param name="label">The label text to be displayed.</param> /// <param name="value">The value to be displayed.</param> /// <returns>The value read from the console.</returns> public static void QuickWrite(string label, T value) { ValueControl<T> valueControl = new ValueControl<T>(label) { Value = value }; valueControl.Write(); }
/// <summary> /// Reads a value from the console using a <see cref="ValueControl{T}"/> with default configuration. /// </summary> /// <param name="label">The label text to be displayed.</param> /// <returns>The value read from the console.</returns> public static T QuickRead(string label) { ValueControl<T> valueControl = new ValueControl<T>(label); return valueControl.Read(); }