导出DLL时方法更改 [英] Methods change when exporting dll
本文介绍了导出DLL时方法更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都知道,当您在c#中导入dll时,为什么用CLI编写的ref类中的方法实际上会被重塑"吗?
Anyone knows why methods from a ref class written in CLI actually get "remodeled" when you import the dll in c# ?
ManagedFoo FOONET::ManagedFoo::divide(ManagedFoo % ac_OtherFoo)
在:
中更改
gets changed in :
void divide(ref FOONET.ManagedFoo value, FOONET.ManagedFoo ac_OtherFoo)
第一个在我的包装器类中,然后编译一个dll,当我在C#中导入该dll时,我得到了第二个...我迷路了...
the first is in my wrapper class and after that I compile a dll and when I import the dll in C# I get the second...I am lost...
推荐答案
我猜想这是由于语言的互操作性.我相信第一个是C ++风格编写的,所以当涉及到C#风格的传递参数时,它会相应地更改
I guess that is due to the language interoperability.I believe that the first one is written in C++ style,so when it comes to C# style of passing parameters it changes accordingly
这篇关于导出DLL时方法更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文