Most Modern C # Duck-Typing Library

What is the current state of the duck string set for C # below version 4.0?

I know about the Duck Typing Project , I know that BLTookit has something for this purpose, but I would like to know if I am missing something really evil, except for the DLR and C # 4.0 languages.

+4
source share
3 answers

Use iron python inside C # code. We used it very successfully.

+3
source

You can use DLR for dynamic type capabilities before .NET 4, although you cannot use a dynamic keyword so that it can be a pain. The remaining "Duck Typing" function looks as if it could be implemented through the Dynamic Proxy Lock .

+2
source
-1
source

Source: https://habr.com/ru/post/1305669/


All Articles