内联MSIL? [英] Inline MSIL?

查看:55
本文介绍了内联MSIL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用''内联''MSIL(中间语言)类似于你可以在C / C ++中使用内联汇编的方式?如果没有,我如何在我的项目中包含一些用IL编写的代码?b $ b?谢谢,


Chris LaJoie

Is it possible to use ''inline'' MSIL (Intermediate Language) similar to how
you can use inline assembly in C/C++? If not, how can I include some code
written in IL in my project? Thanks,

Chris LaJoie

推荐答案

你应该可以只使用ilasm.exe并制作一个来自MSIL的DLL,

然后只需从你的项目中添加对它的引用。


Austin Ehlers


2003年9月6日星期六21:09:07 -0600,Chris LaJoie

< ch *** @ etriptrader.com>写道:
You should be able to just use ilasm.exe and make a DLL from the MSIL,
and then just add a reference to it from your project.

Austin Ehlers

On Sat, 6 Sep 2003 21:09:07 -0600, "Chris LaJoie"
<ch***@etriptrader.com> wrote:
是否可以使用''内联''MSIL(中间语言)类似于如何在C / C ++中使用内联汇编?如果没有,我如何在我的项目中包含一些用IL编写的代码?谢谢,

Chris LaJoie
Is it possible to use ''inline'' MSIL (Intermediate Language) similar to how
you can use inline assembly in C/C++? If not, how can I include some code
written in IL in my project? Thanks,

Chris LaJoie






这就是我想要避免的。我想在同一个程序集中用IL编写的C#和

类编写的课程。


Chris LaJoie

" Austin Ehlers" <第******** @ hotmail.com>在消息中写道

news:67 ******************************** @ 4ax.com ...
Thats what I''m trying to avoid. I''d like to keep classes written in C# and
classes written in IL in the same assembly.

Chris LaJoie

"Austin Ehlers" <th***********************@hotmail.com> wrote in message
news:67********************************@4ax.com...
您应该只能使用ilasm.exe并从MSIL生成DLL,
然后只需从项目中添加对它的引用。
< Austin Ehlers

2003年9月6日星期六21:09:07 -0600,Chris LaJoie
< ch *** @ etriptrader.com>写道:
You should be able to just use ilasm.exe and make a DLL from the MSIL,
and then just add a reference to it from your project.

Austin Ehlers

On Sat, 6 Sep 2003 21:09:07 -0600, "Chris LaJoie"
<ch***@etriptrader.com> wrote:
是否可以使用类似于
的''内联''MSIL(中间语言),你可以在C / C ++中使用内联汇编吗?如果没有,我如何在我的项目中包含一些在IL中编码的
?谢谢,

Chris LaJoie
Is it possible to use ''inline'' MSIL (Intermediate Language) similar to howyou can use inline assembly in C/C++? If not, how can I include some codewritten in IL in my project? Thanks,

Chris LaJoie



" Chris LaJoie" < CH *** @ etriptrader.com>在消息中写道

news:eW **************** @ TK2MSFTNGP09.phx.gbl ...
"Chris LaJoie" <ch***@etriptrader.com> wrote in message
news:eW****************@TK2MSFTNGP09.phx.gbl...
是否有可能使用''inline''MSIL(中间语言)类似于如何在C / C ++中使用内联汇编?如果没有,我如何在我的项目中包含一些用IL编写的代码?谢谢,
Is it possible to use ''inline'' MSIL (Intermediate Language) similar to how
you can use inline assembly in C/C++? If not, how can I include some code
written in IL in my project? Thanks,




我很好奇为什么你在IL写作?这是为了某种表现吗?b $ b提升(甚至还有一个? - 我会有点惊讶)或是它做的事情

框架支持但是也许C#不允许你这样做?


不要把我的帖子看作是任何消极的 - 只是好奇是什么激发了一个

的人写的在IL。


-

Mike Mayer
http://www.mag37.com/csharp/
mi ** @ mag37.com


这篇关于内联MSIL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆