Home

Two Minor requests relating to ReadLineAsync

1) Can mnemonics be disabled on the ReadLine/ReadLineAsync prompts, so that ampersands are displayed.correctly without needing to double them up? (Or is there some benefit I am not considering.)

2) Can you add an overload for

public static Task<TResult> ReadLineAsync<TResult>(string prompt = null)

There is currently an overload with a second optional parameter.

public static Task<TResult> ReadLineAsync<TResult>(string prompt = null, CancellationToken cancelToken = default(CancellationToken))

Unfortunately, you can actually omit the second parameter because the compiler can't tell if you want to use the above overload or the following one

public static Task<TResult> ReadLineAsync<TResult>(string prompt, TResult defaultValue = default(TResult), IEnumerable<TResult> suggestions = null, CancellationToken cancelToken = default(CancellationToken))

Comments

Sign In or Register to comment.