C
C#6mo ago
frozen1234_

✅ Why is this an error?

No description
5 Replies
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
occluder
occluder6mo ago
^ you probably should be returning the list or using IAsyncEnumerable
frozen1234_
frozen1234_OP6mo 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
Anton6mo 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 User6mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server