C
C#7mo ago
frozen1234_

✅ Why is this an error?

No description
5 Replies
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
occluder
occluder7mo ago
^ you probably should be returning the list or using IAsyncEnumerable
frozen1234_
frozen1234_OP7mo 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
Anton7mo 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 User7mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?