I will have to read that last example more times to get it but just the thing about GetAwaiter and GetEnumerator is great. I remember videos stating you don't really need the interface but it never crossed my mind to use it from extension methods, thanks :O :D
Awesome post!
I will have to read that last example more times to get it but just the thing about GetAwaiter and GetEnumerator is great. I remember videos stating you don't really need the interface but it never crossed my mind to use it from extension methods, thanks :O :D
Thanks!
Yes, I imagine it could be used in a really creative way. 🙂
Fantastic post full of great ideas!
I wrote a GetEnumerator for Range just recently and now I apply it to all sorts of things in like if ((1..5).RandomElement() <= 3)
Love the TaskAwaiter on IEnumerable and IEnumerable - totally added that now and attributed to you.
Love it! 💪