C#中的Java之类的热交换代码 [英] Hot swapping code like Java in C#

查看:96
本文介绍了C#中的Java之类的热交换代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio中,有没有一种方法可以启用代码热插拔?在Java中,至少使用eclipse,您可以在运行时更改代码,然后保存并在应用程序中立即更改.我知道这里有编辑并继续"功能,但是我想知道C#是否具有相同的功能.

Is there a way, in visual studio, I could enable code hot swap? In java, using eclipse at least, you can change code at runtime, save it and it will instantaneous change in your application. I know there is the "edit and continue" feature, but I am wondering if there was the same feature for C#.

推荐答案

问题尚不清楚.您在C#中寻找编辑并继续"吗?自VS2010起存在(尽管仅在32位模式下运行).还是要在运行时使应用程序交换代码?效果很好,但是需要手动编码插件引擎(或使用第三方库).

The question is unclear. Are you looking for "edit and continue" in C#? That exists since VS2010 (although only if running in 32 bit mode). Or do you want to make your application swap code at runtime? That works as well, but requires manually coding a plugin engine (or using a third party library).

这篇关于C#中的Java之类的热交换代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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