开发者

.Net Solution with c# and visual basic projects

I have a .Net solution with 5 projects in c# and one in visual basic. I want to know whether there would be a gain of performance to convert my visual basic project to C# in the day to day while I compile 开发者_如何学JAVAmy solution.


No. Visual Basic and C# projects both compile very quickly - so there is likely to be little difference. Also, since they both compile to the same or similar IL, there will be little difference in runtime performance.

However, there may be an advantage in terms of long term maintainability. Having a single language code base is often easier to maintain over time, especially with multiple developers.


If there is any performance gain in the compilation process at all it will be negligible (you are talking about compilation time right?) and not worth the conversion time, risk and headache. Unless you have a better reason for converting then in this case it's likely best to let sleeping dogs lie.


I'm sure not. All your code from VB and C# is compiled into CIL(formerly MSIL).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜