Why does dynamic binding fail when using interface inheritance?

前端 未结 2 943
不知归路
不知归路 2021-01-03 19:30

In C#, please does anyone know why I can\'t do the following? (specifically the line marked \'NOT fine!\' below)

interface A
{
    void Add(dynamic entity);
         


        
2条回答
  •  温柔的废话
    2021-01-03 20:11

    Looking on Microsoft Connect it's filed as a bug - Dynamic runtime fails to find method from a base interface during runtime

提交回复
热议问题