Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> If it has a GetAwaiter it can be awaited, with no interface. If it has a Dispose() it can be disposed with no interface.

I don't know much about C# but how is this dynamic? Are those methods often added at runtime?



It's not dynamic. It is structural typing




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: