SubMain - CodeIt.Right The First Time!

/Community

Support Community for SubMain Products
 Home Products Services Download Purchase Support
in Search
 
Home Forums Blogs Tutorials/CIR Tutorials/GD Downloads
Welcome to SubMain Community Sign in | Join | Help

remove VB reference ?

Last post 05-13-2008, 11:15 PM by Serge B. (SubMain). 1 replies.
Sort Posts: Previous Next
  •  05-09-2008, 9:32 AM 534

    remove VB reference ?

    Great set of guidelines. Thanks for sharing.  I have a couple of questions: 

    In section 3.1 - it states:

     Remove the Visual Basic reference from your project.  Making use of the original Visual Basic functions has been proven to be  up to 1000 times slower than the .NET counterparts; you have been warned.

     Are you saying to remove this from code:  Imports Microsoft.VisualBasic

    Or something else?

    Also, could you provide examples of what is slower and what in .NET that can be used that is 1000 faster? 

    Thanks,

     Frankie

     

     

  •  05-13-2008, 11:15 PM 539 in reply to 534

    Re: remove VB reference ?

    Hi Frankie,

    Yes, Microsoft.VisualBasic and Microsoft.VisualBasic.Compatibility.VB6

    Back when the document was written there was a common misconception that there is Interop involved in the calls to Microsoft.VisualBasic. Later Microsoft clarified that the assembly is a 100% managed code. And now the tests are available that show the Microsoft.VisualBasic methods on average are only ~10% slower.

    So the "1000% faster" statement is obviously a "slight" exaggeration. We could not come up with a better way of encouraging VB developers to use the new .NET techniques and forgets their VB6 habits.

    This piece should definitely be removed from the guidelines document now.


    Thank you,
    Serge Baranovsky
    http://submain.com - .NET Developer Tools  |  Microsoft MVP  |  ASP Insider
    » » CodeIt.Right Will Fix Your Code!™ - http://submain.com/codeit.right
    » » C#/VB .NET Coding Guidelines - FREE 100+ page ebook (PDF) http://submain.com/guidelines
View as RSS news feed in XML
 
     
 
Home |  Products |  Services |  Download |  Purchase |  Support |  Community |  About Us |