Take the 2-minute tour ×

For example, when the codes are compiled, will VB.NET tend to be slower than C#? Or are there any major features in VB.NET / C# that we cannot find in the other language?

share|improve this question

closed as not constructive by Eranga, Uwe Keim, Filburt, Oded, Marco Jan 19 '12 at 10:21


When code is compiled, instructions generated are the same. So, IMO, execution speed is the same. –  Marco Jan 19 '12 at 10:01
Duplicate of stackoverflow.com/questions/5006927/… ? –  nulltoken Jan 19 '12 at 10:08
@Marco - It depends. Are the instructions generated the same? –  Oded Jan 19 '12 at 10:15
@Oded subtle approach ;) –  nulltoken Jan 19 '12 at 10:17
possible duplicate of Is C# faster than VB.NET? –  Oded Jan 19 '12 at 10:20
show 1 more comment

1 Answer

up vote 4 down vote accepted




share|improve this answer
So, if you can assert that the IL produced by a bit of VB.NET is identical to that produced by a bit of C#, then they will run identically. –  Oded Jan 19 '12 at 10:04
techrepublic.com/article/… –  nulltoken Jan 19 '12 at 10:11
+1 Oded because the IL generated by VB is often similar to that generated by C#, but not always identical. For instance the two languages support different features: unsafe code, exception filters, etc. –  MarkJ Jan 19 '12 at 12:21
add comment
