Extension Methods not Recognized

前端 未结 12 1046
抹茶落季
抹茶落季 2020-12-10 00:09

What is necessary to have an extension method honored when it exists in an imported assembly? I built one in a class library project but it is not recognized in my web proj

12条回答
  •  南笙
    南笙 (楼主)
    2020-12-10 01:02

    In my case it said the reason the method was not recognized had nothing to do with extension methods, but an error in the same file which did not show up in the IDE - For me the solution was restarting the IDE and it suddenly displayed the actual error i had to fix.

提交回复
热议问题