You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following snippet shows how using a formattable string uses the wrong overload of write:
classProgram{staticvoidMain(){Write($"Hello there {DateTime.Now}");}staticvoidWrite(stringtext){Console.WriteLine("unformated");}staticvoidWrite(FormattableStringtext){Console.WriteLine("formated");}}
Expected Behavior: formatted
Actual Behavior: unformatted
As a note explicitly casting the formattable string to FormatableString produces the correct results:
The text was updated successfully, but these errors were encountered:
Version Used: 7.1
The following snippet shows how using a formattable string uses the wrong overload of write:
Expected Behavior:
formatted
Actual Behavior:
unformatted
As a note explicitly casting the formattable string to FormatableString produces the correct results:
The text was updated successfully, but these errors were encountered: