an exception of type 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException'
引起这种异常的错误是因为匿名类型是不能跨程序集(assembly)的,第一种解决办法是使用 Expando ,第二个办法是在源程序集的AssemblyInfo.cs中加入:
[assembly: InternalsVisibleTo("NameSpace1.SubNameSpace1")]
an exception of type 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException'
引起这种异常的错误是因为匿名类型是不能跨程序集(assembly)的,第一种解决办法是使用 Expando ,第二个办法是在源程序集的AssemblyInfo.cs中加入:
[assembly: InternalsVisibleTo("NameSpace1.SubNameSpace1")]