Can any body post an overview on vb.net?

i am a vb progrmmer but i dont have knowledge on .net.

Comments

  • : i am a vb progrmmer but i dont have knowledge on .net.
    :

    VB.NET supports single inheritence ...

    [code]
    Public Class SomeClass
    'Code
    End Class

    Public Class AnotherClass
    Inherits SomeClass
    ' Code
    End Class
    [/code]

    As u can see that you must explicitly use Class ... End Class blocks to define classes. Same applies to Modules as well

    [code]
    Module Globals
    ' Code
    End Module
    [/code]

    COM is not the core anymore. COM components can only be used through .NET interop services. Object lifetimes are different. Unlike COM (where objects die when the object counter reaches zero), .NET objects are nondeterministic. This means that an object is released when .NET decides to do garbage collection through advanced algorithms.

    The Set keyword for objects does not exist ...

    [code]
    'Error
    Set obj = New SomeObject
    ...

    ' Error
    Set obj = Nothing
    [/code]

    Objects support contructors now like C++. Variables can be declared and initialized all in one line like c++.

    [code]
    Dim strName As String = "John Doe"
    [/code]

    Most data types are objects now. For instance you can test strings this way now ...

    [code]
    If strName Is Nothing Then
    ' Code
    End If
    [/code]

    VB.NET supports structured exception handling now ...

    [code]
    Try
    ' Code
    Catch Err As Exception
    ' Code
    End Try
    [/code]

    The list goes on and on. .NET is highly XML based, type libraries are written in XML and config files that compliment your program are XML based. DLL files do not register in the Registry eliminating DLL hell. Through heuristics .NET takes several paths when attempting to find the DLL for running programs. With this flexibilty you can have different versions side-by-side with no conflicts.

    VB.NET is multi-threaded now. Also new comparison and logic opertaors have been added to make code concise. Next you can overload functions like c++ and override functions in derived classes. All functionality required by VB6 functions are built into the datatypes natively for ease.

    Because of .NET u have over 3500 pre-built libraries to work with. For instance you can manipulate images at a low-level through managed GDI+. Everythging from creating colors to doing transformations. ADO.NET is the next generation of accessing databases. You have the liberty of working with DataSets which make recordsets seem useless. There are several objects dedicated to web development (ASP.NET). You can do everythging from sending mail to creating ur own internet protocols. Web services seem to be the new fad in programming. Web services allow objects to be accessed over a network through the XML SOAP protocol language.

    On top of this you have classes dedicated to streams, file serialization, Threading, formatting, globalization, and more.

    To keep some backwards compatibilty you have access to almost all of the VB6 routines and you can still use COM components through .NET interop services.

    I could go on for days. My opionion is that once you go VB.NET you will never want to program VB6 or less again.

    If you really want to know all the changes read the book Programming VB.NET by Franscesco Balena. There is over 1200 pages of unique information covering almost every fad of application programming. This is the best book I have read so far on .NET. If your into Web Development read ASP.NET unleased which was also a good book.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion