Skip to content

Instantly share code, notes, and snippets.

View byme8's full-sized avatar
🏠
Working from home

Stanislav Silin byme8

🏠
Working from home
View GitHub Profile
@byme8
byme8 / DuckInterface.md
Last active January 5, 2021 09:27
DuckInterface

DuckInterface

I was playing with new .Net 5 and the Source Generator lately and got an idea that it is possible to add "duck typing" support to C#. I would say it is purely academic(no one will use it in production I hope), but it is fun stuff so I decided to try.

The nuget package with results you can find here

Nuget

The repository is here: https://github.com/byme8/DuckInterface