none
Does anyone know of specific differences in IL code between identical vb.net and C# programs? RRS feed

  • Question

  • I am researching the subtle differences in IL code between a program that has been written in C# and then written in vb.net.  Has anyone come across anything interesting?  Any and all information is helpful.  Thanks!


    Tuesday, July 15, 2008 7:26 PM

Answers

  • well, the IL code generated by identical apps should be, at least in theory, identical. there might me some cases where you'll have diferences in the IL code, but you'll not find any major differences. the logic will be the same between the two ILs
    Lucian Baciu, MCTS, http://studentclub.ro/lucians_weblog
    • Marked as answer by Figo Fei Monday, July 21, 2008 3:42 AM
    Wednesday, July 16, 2008 12:42 PM
  •  This might not be the most suitable place to discuss this question, but here are some references for you:
    "Differences Between Visual Basic .NET and Visual C# .NET" white paper
    http://support.microsoft.com/kb/308470 
    What are the advantages of C# over VB.NET and vice versa?
    http://blogs.msdn.com/csharpfaq/archive/2004/03/11/87816.aspx

    Thanks.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    • Marked as answer by Figo Fei Monday, July 21, 2008 3:41 AM
    Friday, July 18, 2008 2:13 AM

All replies

  • well, the IL code generated by identical apps should be, at least in theory, identical. there might me some cases where you'll have diferences in the IL code, but you'll not find any major differences. the logic will be the same between the two ILs
    Lucian Baciu, MCTS, http://studentclub.ro/lucians_weblog
    • Marked as answer by Figo Fei Monday, July 21, 2008 3:42 AM
    Wednesday, July 16, 2008 12:42 PM
  • In theory, yes it should be the same, but obviously there is bound to be slight differences.  If anyone has a program that has had small differences in code, I would love to see it and/or learn which things are causing the differences.  I understand that there shouldn't be anything major, but I would still like to see some examples.  Thanks!
    Wednesday, July 16, 2008 1:13 PM
  •  This might not be the most suitable place to discuss this question, but here are some references for you:
    "Differences Between Visual Basic .NET and Visual C# .NET" white paper
    http://support.microsoft.com/kb/308470 
    What are the advantages of C# over VB.NET and vice versa?
    http://blogs.msdn.com/csharpfaq/archive/2004/03/11/87816.aspx

    Thanks.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    • Marked as answer by Figo Fei Monday, July 21, 2008 3:41 AM
    Friday, July 18, 2008 2:13 AM