Cursed C# - Doing shenanigans in C#
Read OriginalThis technical blog post demonstrates how to use C# extension methods to implement seemingly nonsensical patterns, such as iterating over an integer's digits with a foreach loop and directly awaiting a TimeSpan object. It explains the underlying compiler patterns and duck-typing that make these 'cursed' shenanigans possible.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser