Replies: 1 comment
-
It's not at all obvious that this is desirable. Task types may absolutely have a reasonable ToString (for example saying what the status of the task is). That said, if you want a warning here, it would be very easy to build one using a roslyn analyzer. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In this case it is obviously that should use
$"Value: {await v}"
but there are situations where it is not obvious...I think, every type that has GetAwaiter() method should cause warning with string interpolation.
Case:
Beta Was this translation helpful? Give feedback.
All reactions