=================反编译后代码里面有[Dynamic(new bool[]{false,true})]编译不过=============
private bool **(IDynamicFormModel model, DynamicRow dynamicRow, string strKey, [Dynamic(new bool[]{false,true})] ref dynamic value)
{
bool result = true;
string[] array = strKey.Split(new char[]
{
...
...
}
}
编译时提示报错:
不要使用“System.Runtime.CompilerServices.DynamicAttribute”。请改用“dynamic”关键字。 E:\**\**.c
------解决方案--------------------
private bool **(IDynamicFormModel model, DynamicRow dynamicRow, string strKey, [Dynamic(new bool[]{false,true})] ref dynamic value)
=>
private bool **(IDynamicFormModel model, DynamicRow dynamicRow, string strKey, ref dynamic value)
------解决方案--------------------dynamic关键字在IL里面是用Attribute表示的,只不过是那个反编译器还不够智能,不能自动将Attribute去掉而已。