C
C#5mo ago
frozen1234_

✅ Why is this an error?

No description
5 Replies
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
occluder
occluder5mo ago
^ you probably should be returning the list or using IAsyncEnumerable
frozen1234_
frozen1234_OP5mo ago
I know, I was just trying some stuff out and was surprised that the type won't be inferred in this case since List should satisfy IEnumerable.
Anton
Anton5mo ago
This would work if task was an interface with an in generic parameter But it's a class. Maybe it's sealed even, I don't remember
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server