Complete Comparison for VB

download Complete Comparison for VB

of 7

Transcript of Complete Comparison for VB

  • 8/19/2019 Complete Comparison for VB

    1/15

    3/18/2016 Complete Comparison for VB.NET and C# - CodeProject

    http://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C 1/15

    Search for articles, questions, tipsQ&A forums loungearticles

    Rate:Amalorpavanathan Yagulasamy AMAL , 18 Apr 2005

    Complete Comparison for VB.NET and C#

    This article explains about advantages, differences and new features of VB.NET and C#.

    Contents

    1. Introduction

    2. Advantages of both languages

    3. Keyword Differences

    4. Data types Differences

    5. Operators Differences

    6. Programming Difference

    7. New Features of both languages in 2005 version

    8. Conclusion9. History

    Introduction

    Some people like VB.NET's natural language, case‐insensitive approach, others like C#'s terse syntax. But both have access

    to the same framework libraries. We will discuss about the differences in the following topics:

    1. Advantages of both languages

    2. Keyword Differences

    3. Data types Differences4. Operators Differences

    5. Programming Difference

    Advantages of both languages

    VB.NET C#

    Support for optional parameters ‐ very handy for some

    COM interoperability.Support for late binding with Option Strict off ‐ type

    safety at compile time goes out of the window, but legacy

    libraries which don't have strongly typed interfaces

    become easier to use.

    Support for named indexers.

    XML documentation generated from source code

    comments. This is coming in VB.NET withWhidbey the code name for the next version of 

    Visual Studio and .NET , and there are tools which

    will do it with existing VB.NET code already. 

    Operator overloading ‐ again, coming to VB.NET

    in Whidbey.

      4.87 178 votes 

    12,151,734 members 51,130 online  129   Sign outlearn8055

    http://www.codeproject.com/script/Articles/Latest.aspxhttp://www.codeproject.com/script/Answers/List.aspx?tab=activehttp://www.codeproject.com/script/Forums/List.aspxhttp://www.codeproject.com/Lounge.aspxhttp://www.codeproject.com/script/Articles/Latest.aspxhttp://www.codeproject.com/script/Answers/List.aspx?tab=activehttp://www.codeproject.com/script/Forums/List.aspxhttp://www.codeproject.com/http://www.codeproject.com/http://www.codeproject.com/http://www.codeproject.com/http://www.codeproject.com/script/Bookmarks/Add.aspx?obid=9978&obtid=2&action=AddBookmark&bio=true&bis=mediumhttp://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C?display=Printhttp://www.codeproject.com/Members/User-11847743http://www.codeproject.com/script/Membership/LogOff.aspx?rp=%2fArticles%2f9978%2fComplete-Comparison-for-VB-NET-and-Chttp://www.codeproject.com/script/Reputation/List.aspx?mid=11881198http://www.codeproject.com/script/Membership/View.aspx?mid=822133http://www.codeproject.com/script/Articles/Latest.aspxhttp://www.codeproject.com/Lounge.aspxhttp://www.codeproject.com/script/Forums/List.aspxhttp://www.codeproject.com/script/Answers/List.aspx?tab=activehttp://www.codeproject.com/

  • 8/19/2019 Complete Comparison for VB

    2/15

    3/18/2016 Complete Comparison for VB.NET and C# - CodeProject

    http://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C 2/15

    Various legacy VB functions provided in the

    Microsoft.VisualBasic namespace, and can beused by other languages with a reference to the

    Microsoft.VisualBasic.dll . Many of these can be harmful to

    performance if used unwisely, however, and many people

    believe they should be avoided for the most part.

    The with construct: it's a matter of debate as to whetherthis is an advantage or not, but it's certainly a difference.

    Simpler in expression ‐ perhaps more complicated in

    understanding  event handling, where a method can

    declare that it handles an event, rather than the handler

    having to be set up in code.

    The ability to implement interfaces with methods of 

    different names. Arguably this makes it harder to find the

    implementation of an interface, however. 

    Catch ... When ... clauses, which allow exceptions to befiltered based on runtime expressions rather than just by

    type.

    The VB.NET parts of Visual Studio .NET compiles your

    code in the background. While this is considered as an

    advantage for small projects, people creating very largeprojects have found that the IDE slows down considerably

    as the project gets larger.

    Language support for unsigned types you can

    use them from VB.NET, but they aren't in the

    language itself  . Again, support for these is

    coming to VB.NET in Whidbey.

    The using statement, which makes unmanagedresource disposal simple.

    Explicit interface implementation, where an

    interface which is already implemented in a base

    class can be re‐implemented separately in a

    derived class. Arguably this makes the class

    harder to understand, in the same way that

    member hiding normally does.

    Unsafe code. This allows pointer arithmetic etc,

    and can improve performance in some situations.

    However, it is not to be used lightly, as a lot of 

    the normal safety of C# is lost as the name

    implies . Note that unsafe code is still managed

    code, i.e., it is compiled to IL, JITted, and run

    within the CLR.

    Keyword Differences

    Purpose VB.NET C#

    Declare a variable   Private, Public, Friend,Protected, Static1, Shared,Dim

    declarators  keywords include user‐definedtypes and built‐in types 

    Declare a named constant   Const const

    Create a new object   New, CreateObject() new

    Function/method does not

    return a value

    Sub void

    Overload a function or

    method Visual Basic:

    overload a procedure or

    method 

    Overloads   No language keyword required for this purpose 

    Refer to the current object   Me this

    Make a nonvirtual call to a

    virtual method of the current

    object

    MyClass n/a

    Retrieve character from a

    string

    GetChar Function []

  • 8/19/2019 Complete Comparison for VB

    3/15

    3/18/2016 Complete Comparison for VB.NET and C# - CodeProject

    http://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C 3/15

    Declare a compound data

    type Visual Basic: Structure 

    Structure EndStructure

    struct, class, interface

    Initialize an object

     constructors 

    Sub New() Constructors, or system default type constructors

    Terminate an object directly n/a n/a

    Method called by the system

     just before garbage collection

    reclaims an object7

    Finalize destructor

    Initialize a variable where it is

    declared

    Hide Copy Code

    Dim  x As Long  = 5

    Hide Copy Code

    Dim  c As New  _Car(FuelTypeEnum.Gas)

    Hide Copy Code

     // initialize to a value:

    int  x = 123; // or use default

     // constructor:

    int  x = new int();

    Take the address of a functionAddressOf  For class members, thisoperator returns a reference to a

    function in the form of a delegate

    instance 

    delegate

    Declare that an object can be

    modified asynchronously

    n/a volatile

    Force explicit declaration of variables Option Explicit n/a. All variables must be declared prior to use

     

    Test for an object variable

    that does not refer to an

    object

    obj = Nothing obj == null

    Value of an object variable

    that does not refer to an

    object

    Nothing null

    Test for a database null

    expression

    IsDbNull n/a

    Test whether a Variant

    variable has been initialized

    n/a n/a

    Define a default property   Default by using indexers

    Refer to a base class   MyBase base

    Declare an interface   Interface interface

    Specify an interface to be

    implemented

    Implements (statement) class C1 : I1

  • 8/19/2019 Complete Comparison for VB

    4/15

    3/18/2016 Complete Comparison for VB.NET and C# - CodeProject

    http://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C 4/15

    Declare a class   Class class

    Specify that a class can only

    be inherited. An instance of 

    the class cannot be created.

    MustInherit abstract

    Specify that a class cannot beinherited NotInheritable sealed

    Declare an enumerated type   Enum End Enum enum

    Declare a class constant   Const const  Applied to a field declaration 

    Derive a class from a base

    class

    Inherits C2 class C1 : C2

    Override a method   Overrides override

    Declare a method that must

    be implemented in a deriving

    class

    MustOverride abstract

    Declare a method that can't

    be overridden

    NotOverridable  Methods are notoverridable by default. 

    sealed

    Declare a virtual method,

    property Visual Basic , or

    property accessor C#, C++ 

    Overridable virtual

    Hide a base class member in

    a derived class

    Shadowing n/a

    Declare a typesafe reference

    to a class method

    Delegate delegate

    Specify that a variable can

    contain an object whoseevents you wish to handle

    WithEvents   Write code ‐ no specific keyword 

    Specify the events for which

    an event procedure will be

    called

    Handles  Event procedures can stillbe associated with a WithEventsvariable by naming pattern. 

    n/a

    Evaluate an object expression

    once, in order to access

    multiple members

    Hide Copy Code

    With  objExpr

    End With

    n/a

    Structured exception handling Hide Copy Code

    Try 

    try, catch, finally,throw

  • 8/19/2019 Complete Comparison for VB

    5/15

    3/18/2016 Complete Comparison for VB.NET and C# - CodeProject

    http://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C 5/15

    Catch 

    Finally 

    End Try

    Decision structure selection  Select Case ..., Case, CaseElse, End Select

    switch, case, default, goto, break

    Decision structure if ... then  If ... Then, ElseIf ...Then, Else, End If

    if, else

    Loop structure conditional  While, Do [While, Until]..., Loop [While, Until]

    do, while, continue

    Loop structure iteration  For ..., [Exit For], NextFor Each ..., [Exit For,]Next

    for, foreach

    Declare an array Hide Copy Code

    Dim  a() As Long

    Hide Copy Code

    int[] x = new int[5];

    Initialize an array Hide Copy Code

    Dim  a() As Long  = {3, 4, 5}

    Hide Copy Code

    int[] x = new int[5] {1, 2, 3, 4, 5};

    Reallocate array   Redim n/a

    Visible outside the project or

    assembly

    Public public

    Invisible outside the assembly

     C#/Visual Basic  or within the

    package Visual J#, JScript 

    Friend internal

    Visible only within the project

     for nested classes, within the

    enclosing class 

    Private private

    Accessible outside class and

    project or module

    Public public

    Accessible outside the class,

    but within the project

    Friend internal

    Only accessible within class or

    module

    Private private

    Only accessible to current and

    derived classes

    Protected protected

  • 8/19/2019 Complete Comparison for VB

    6/15

    3/18/2016 Complete Comparison for VB.NET and C# - CodeProject

    http://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C 6/15

    Preserve procedure's local

    variables

    Static n/a

    Shared by all instances of a

    class

    Shared static

    Comment code   ' Rem

    //, /* */ for multi‐line comments/// for XML comments

    Case‐sensitive? No Yes

    Call Windows API   Declare use Platform Invoke

    Declare and raise an event   Event, RaiseEvent event

    Threading primitives   SyncLock lock

    Go to   Goto goto

    Data types Differences

    Purpose/Size VB.NET C#

    Decimal   Decimal decimal

    Date   Date DateTime

     varies  String string

    1 byte   Byte byte

    2 bytes   Boolean bool

    2 bytes   Short, Char (Unicodecharacter)

    short, char (Unicode character)

    4 bytes   Integer int

    8 bytes   Long long

    4 bytes   Single float

    8 bytes   Double double

  • 8/19/2019 Complete Comparison for VB

    7/15

    3/18/2016 Complete Comparison for VB.NET and C# - CodeProject

    http://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C 7/15

    Operators Differences

    Purpose VB.NET C#

    Integer division   \ /

    Modulus division returning only

    the remainder 

    Mod %

    Exponentiation   ^ n/a

    Integer division Assignment   \= /=

    Concatenate   &= NEW +=

    Modulus n/a   %=

    Bitwise‐AND n/a   &=

    Bitwise‐exclusive‐OR n/a   ^=

    Bitwise‐inclusive‐OR n/a   |=

    Equal   = ==

    Not equal   !=

    Compare two object reference

    variables

    Is ==

    Compare object reference type   TypeOf x Is Class1 x is Class1

    Concatenate strings   & +

    Shortcircuited Boolean AND   AndAlso &&

    Shortcircuited Boolean OR   OrElse ||

    Scope resolution   . . and base

    Array element   () [ ]

    Type cast   Cint, CDbl, ..., CType (type)

    Postfix increment n/a   ++

    Postfix decrement n/a   ‐‐

  • 8/19/2019 Complete Comparison for VB

    8/15

    3/18/2016 Complete Comparison for VB.NET and C# - CodeProject

    http://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C 8/15

    Indirection n/a   *  unsafe mode only 

    Address of    AddressOf &  unsafe mode only; also see fixed 

    Logical‐NOT   Not !

    One's complement   Not ~

    Prefix increment n/a   ++

    Prefix decrement n/a   ‐‐

    Size of type n/a   sizeof

    Bitwise‐AND   And &

    Bitwise‐exclusive‐OR   Xor ^

    Bitwise‐inclusive‐OR   Or |

    Logical‐AND   And &&

    Logical‐OR   Or ||

    Conditional   If Function () ?:

    Pointer to member n/a   .  Unsafe mode only 

    Programming Difference

    Purpose VB.NET C#

    Declaring

    Variables

    Hide Copy Code

    Dim  x As Integer Public  x As Integer  = 10

    Hide Copy Code

    int  x;int  x = 10;

    CommentsHide Copy Code

    ' comment

    x = 1  ' commentRem comment

    Hide Copy Code

     // comment

     /* multiline

    comment */ 

    Assignment

    Statements

    Hide Copy Code

    nVal = 7Hide Copy Code

    nVal = 7;

    ConditionalHide Copy Code

    If  nCnt

  • 8/19/2019 Complete Comparison for VB

    9/15

    3/18/2016 Complete Comparison for VB.NET and C# - CodeProject

    http://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C 9/15

    Statements   ' Same as nTotal =' nTotal + nCnt.

    nTotal += nCnt' Same as nCnt = nCnt + 1.

    nCnt += 1 Else 

    nTotal += nCntnCnt ‐= 1 

    End If

    {nTotal += nCnt;nCnt++;

    }else {

    nTotal +=nCnt;nCnt‐‐;

    }

    Selection

    Statements

    Hide Copy Code

    Select Case  nCase 0 

    MsgBox ("Zero")' Visual Basic .NET exits

    ' the Select at

    ' the end of a Case.

    Case 1 MsgBox ("One")

    Case 2 MsgBox ("Two")

    Case Else MsgBox ("Default")

    End Select

    Hide Copy Code

    switch(n){

    case 0:Console.WriteLine("Zero");break;

    case 1:Console.WriteLine("One");break;

    case 2:Console.WriteLine("Two");break;

    default:Console.WriteLine("?");break;

    }

    FOR LoopsHide Copy Code

    For  n = 1 To 10 MsgBox("The number is "  & n)

    Next 

    For Each  prop In  objprop = 42 

    Next  prop

    Hide Copy Code

    for  (int  i = 1; i

  • 8/19/2019 Complete Comparison for VB

    10/15

    3/18/2016 Complete Comparison for VB.NET and C# - CodeProject

    http://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C 10/15

      "Accessed through base "&_"class: "  & BObj.Z)

    System.Console.WriteLine(_"Accessed through derived "&_"class: "  & DObj.Z)BObj.Test()DObj.Test()

    End Sub End Class

      {System.Console.WriteLine("Accessed through "  +

    "base class: {0}",BObj.Z);

    System.Console.WriteLine("Accessed through"  +

    " derived class:{0}",DObj.Z);

    BObj.Test();

    DObj.Test();}}

    WHILE LoopsHide Copy Code

    ' Test at start of loop

    While  n < 100  .' Same as n = n + 1.

    n += 1 End While '

    Hide Copy Code

    while  (n < 100)n++;

    Parameter

    Passing by

    Value

    Hide Copy Code

    ' The argument Y is

    'passed by value.

    Public Sub  ABC( _ByVal  y As Long)

    'If ABC changes y, the' changes do not affect x.

    End Sub 

    ABC(x) ' Call the procedure.' You can force parameters to

    ' be passed by value,' regardless of how

    ' they are declared,' by enclosing

    ' the parameters in

    ' extra parentheses.

    ABC((x))

    Hide Copy Code

     /* Note that there is

    no way to pass reference

    types (objects) strictly

    by value. You can choose

    to either pass the reference(essentially a pointer), or

    a reference to the reference

    (a pointer to a pointer).*/   // The method:

    void  ABC(int  x){

    ...

    } // Calling the method:ABC(i);

    Parameter

    Passing by

    Reference

    Hide Copy Code

    Public Sub  ABC(ByRef  y As Long)' The parameter y is declared

    'by referece:

    ' If ABC changes y, the changes are' made to the value of x.

    End Sub 

    ABC(x) ' Call the procedure.

    Hide Copy Code

     /* Note that there is no

    way to pass reference types

    (objects) strictly by value.

    You can choose to either pass the reference

    (essentially a pointer),

    or a reference to the

    reference (a pointer to a

     pointer).*/   // Note also that unsafe C# //methods can take pointers

     //just like C++ methods. For

     //details, see unsafe.

     // The method:

    void  ABC(ref int  x){

    ...}

     // Calling the method:

    ABC(ref  i);

    Structured

    Exception

    Handling

    Hide Copy Code

    Try If  x = 0 Then 

    Hide Copy Code

     // try‐catch‐finally

    try 

  • 8/19/2019 Complete Comparison for VB

    11/15

    3/18/2016 Complete Comparison for VB.NET and C# - CodeProject

    http://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C 11/15

      Throw New  Exception( _"x equals zero")

    Else Throw New  Exception( _

    "x does not equal zero")End If 

    Catch  err As  System.ExceptionMsgBox( _"Error: "  & Err.Description)

    Finally 

    MsgBox( _"Executing finally block.")End Try

    {if  (x == 0)

    throw new  System.Exception("x equals zero");

    else throw new  System.Exception(

    "x does not equal zero");}catch  (System.Exception err){

    System.Console.WriteLine(err.Message);}finally {

    System.Console.WriteLine("executing finally block");

    }

    Set an Object

    Reference to

    Nothing

    Hide Copy Code

    o = Nothing

    Hide Copy Code

    o = null;

    Initializing

    Value Types

    Hide Copy Code

    Dim  dt as New  System.DateTime( _2001, 4, 12, 22, 16, 49, 844)

    Hide Copy Code

    System.DateTime dt =new  System.DateTime(2001, 4, 12, 22, 16,

    49, 844);

    New Features of both languages in 2005 version

    VB.NET C#

    Visual Basic 2005 has many new and improved language features

    ‐‐ such as inheritance, interfaces, overriding, shared members,

    and overloading ‐‐ that make it a powerful object‐oriented

    programming language. As a Visual Basic developer, you can now

    create multithreaded, scalable applications using explicit

    multithreading. This language has following new features,

    1. Continue Statement, which immediately skips to the

    next iteration of a Do, For, or While loop.2. IsNot operator, which you can avoid using the Not and

    Is operators in an awkward order.3. 3. Using...End. Using statement block ensures

    disposal of a system resource when your code leaves the

    block for any reason.Hide Copy Code

    Public Sub  setbigbold( _ByVal  c As  Control)

    Using  nf As New  _System.Drawing.Font("Arial",_12.0F, FontStyle.Bold)

    c.Font = nfc.Text = "This is"  &_"12‐point Arial bold" 

    End Using End Sub

    With the release of Visual Studio 2005, the C# language

    has been updated to version 2.0. This language has

    following new features:

    1. Generics types are added to the language to

    enable programmers to achieve a high level of 

    code reuse and enhanced performance for

    collection classes. Generic types can differ only by

    arity. Parameters can also be forced to be specifictypes.

    2. Iterators make it easier to dictate how a for each

    loop will iterate over a collection's contents.Hide Copy Code

     // Iterator Example

    public class  NumChar{string[] saNum = {

    "One", "Two", "Three","Four", "Five", "Six","Seven", "Eight", "Nine","Zero"};

    public System.Collections.IEnumeratorGetEnumerator()

    {foreach  (string  num in  saNum)yield return  num;

  • 8/19/2019 Complete Comparison for VB

    12/15

    3/18/2016 Complete Comparison for VB.NET and C# - CodeProject

    http://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C 12/15

    4. Explicit Zero Lower Bound on an Array, Visual Basic

    now permits an array declaration to specify the lower

    bound 0  of each dimension along with the upper bound.

    5. Unsigned Types, Visual Basic now supports unsigned

    integer data types UShort, UInteger, and ULong  aswell as the signed type SByte.

    6. Operator Overloading, Visual Basic now allows you to

    define a standard operator such as +, &, Not, or Mod  ona class or structure you have defined.

    7. Partial Types, to separate generated code from your

    authored code into separate source files.

    8. Visual Basic now supports type parameters on generic

    classes, structures, interfaces, procedures, and delegates.

    A corresponding type argument specifies at compilation

    time the data type of one of the elements in the generic

    type.

    9. Custom Events. You can declare custom events by using

    the Custom keyword as a modifier for the Eventstatement. In a custom event, you specify exactly what

    happens when code adds or removes an event handler to

    or from the event, or when code raises the event.10. Compiler Checking Options, The /nowarn and

     /warnaserror options provide more control over how

    warnings are handled. Each one of these compiler options

    now takes a list of warning IDs as an optional parameter,

    to specify to which warnings the option applies.

    11. There are eight new command‐line compiler options:

    a. The /codepage option specifies which codepage

    to use when opening source files.

    b. The /doc option generates an XML documentation

    file based on comments within your code.

    c. The /errorreport option provides a convenientway to report a Visual Basic internal compiler error

    to Microsoft.

    d. The /filealign option specifies the size of sections

    in your output file.

    e. The /noconfig option causes the compiler to

    ignore the Vbc.rsp file.

    f. The /nostdlib option prevents the import of 

    mscorlib.dll, which defines the entire System

    namespace.

    g. The /platform option specifies the processor to

    be targeted by the output file, in those situations

    where it is necessary to explicitly specify it.h. The /unify option suppresses warnings resulting

    from a mismatch between the versions of directly

    and indirectly referenced assemblies.

    }}

     // Create an instance of

     // the collection class

    NumChar oNumChar = new  NumChar(); // Iterate through it with foreach

    foreach  (string  num in  oNumChar)Console.WriteLine(num);

    3. Partial type definitions allow a single type,

    such as a class, to be split into multiple files. The

    Visual Studio designer uses this feature to

    separate its generated code from user code.

    4. Nullable types allow a variable to contain avalue that is undefined.

    5. Anonymous Method is now possible to pass ablock of code as a parameter. Anywhere a

    delegate is expected, a code block can be used

    instead: There is no need to define a new method.Hide Copy Code

    button1.Click +=

    delegate  { MessageBox.Show("Click!") };

    6. . The namespace alias qualifier  ::  providesmore control over accessing namespace

    members. The global :: alias allows to access theroot namespace that may be hidden by an entity

    in your code.

    7. Static classes are a safe and convenient wayof declaring a class containing static methods that

    cannot be instantiated. In C# v1.2 you would have

    defined the class constructor as private to preventthe class being instantiated.

    8. 8. There are eight new compiler options:

    a. /langversion option: Can be used to

    specify compatibility with a specific

    version of the language.

    b. /platform option: Enables you to target

    IPF IA64 or Itanium  and AMD64

    architectures.

    c. #pragma warning: Used to disable and

    enable individual warnings in code.

    d. /linkresource option: Contains additionaloptions.

    e. /errorreport option: Can be used to

    report internal compiler errors to

    Microsoft over the Internet.

    f. /keycontainer and /keyfile: Support

    specifying cryptographic keys.

    Conclusion

    I think that this article will help you understand both language features and also you can choose a language based on your

    taste. I will update this article in future if there are any changes.

  • 8/19/2019 Complete Comparison for VB

    13/15

    3/18/2016 Complete Comparison for VB.NET and C# - CodeProject

    http://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C 13/15

    History

    14 Apr 2005 ‐ Topic added ‐ "New features of both languages in 2005 version"

    30 Mar 2005 ‐ Initial version.

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files

    themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here

    Share

    About the Author

    You may also be interested in...

    Simple image comparison in

    .NET

    AvePoint & Amazon Web

    Services: SharePoint in AWS

    Hash Functions: An Empirical

    Comparison

    Looking Ahead to C# 7 with

    Mads Torgersen

    Windows Mobile, iPhone, Game On: Intel® Edison with

    EMAIL

    Amalorpavanathan Yagulasamy AMAL Web Developer

    United States

    Amalorpavanathan Yagulasamy AMAL  is a Software Engineer for Protech Solution Inc. and has designed and

    implemented projects for Arkansas Child Support, Arkansas Budgetting, Michigan Child Support , Massachusetts Child

    Support, National Informatics Center‐India and Indian Oil Corporation. His background is in developing relational

    databases and n‐tier applications on Windows platforms in CMM Level Standards. He can be reached at

    [email protected]

    http://www.codeproject.com/Members/Amalorpavanathan-Yagulasamy-AMALmailto:?subject=Complete%20Comparison%20for%20VB.NET%20and%20C%23%20-%20CodeProject&body=Here%27s%20an%20interesting%20article%20on%20for%20you%20on%20codeproject.com%0a%0ahttp%3a%2f%2fwww.codeproject.com%2fArticles%2f9978%2fComplete-Comparison-for-VB-NET-and-C%0ahttp://www.codeproject.com/Articles/1079659/Game-On-Intel-Edison-with-the-Xadow-Wearable-Kithttp://www.codeproject.com/Articles/51835/Windows-Mobile-iPhone-Android-Marketplace-Comparishttp://www.codeproject.com/Articles/1085643/Looking-Ahead-to-Csharp-with-Mads-Torgersenhttp://www.codeproject.com/Articles/32829/Hash-Functions-An-Empirical-Comparisonhttp://www.codeproject.com/ResearchLibrary/8/AvePoint-Amazon-Web-Services-SharePoint-in-AWShttp://www.codeproject.com/Articles/374386/Simple-image-comparison-in-NEThttp://www.codeproject.com/info/Licenses.aspxhttp://www.codeproject.com/Articles/1085643/Looking-Ahead-to-Csharp-with-Mads-Torgersenhttp://www.codeproject.com/Articles/32829/Hash-Functions-An-Empirical-Comparisonhttp://www.codeproject.com/ResearchLibrary/8/AvePoint-Amazon-Web-Services-SharePoint-in-AWShttp://www.codeproject.com/Articles/374386/Simple-image-comparison-in-NET

  • 8/19/2019 Complete Comparison for VB

    14/15

    3/18/2016 Complete Comparison for VB.NET and C# - CodeProject

    http://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C 14/15

    Add a Comment or QuestionSearch Comments Go

     

    Android - Marketplace

    Comparison

    the Xadow Wearable Kit

    Comments and Discussions

    First   Prev Next

    My vote of 5 

    Ashish Kumar kansal 26‐Nov‐15 1:55

    Additional Corrections Member 10703102 10‐Apr‐15 8:13

    nice article 

    anilh.chavan 5‐Feb‐15 1:23

    Good Article 

    Suma Ks 9‐Jul‐14 2:40

    Update? 

    streezer 23‐May‐13 1:42

    Agreement with craigg75 

    Steven Fletcher 12‐Apr‐13 14:26

    Comment 

    Deepak Rana11 9‐Mar‐13 7:25

    My vote of 5 

    Sergey Orlov 11‐Feb‐13 17:33

    Separators krietens 10‐Jul‐12 3:52

    Imports And Using 

    Member 7727625 22‐Apr‐12 3:05

    My vote of 5 

    square22 19‐Apr‐12 17:49

    IsDbNull 

    allan32 12‐Apr‐12 5:18

    My vote of 4 

    RajeshKalisetti 6‐Jan‐12 0:30

    My vote of 1 

    http://www.codeproject.com/Messages/4119883/My-vote-of.aspxhttp://www.codeproject.com/Messages/4120244/My-vote-of.aspxhttp://www.codeproject.com/Messages/4218892/IsDbNull.aspxhttp://www.codeproject.com/Messages/4226619/My-vote-of.aspxhttp://www.codeproject.com/Messages/4228236/Imports-And-Using.aspxhttp://www.codeproject.com/Messages/4304950/Separators.aspxhttp://www.codeproject.com/Messages/4493279/My-vote-of.aspxhttp://www.codeproject.com/Messages/4513460/Comment.aspxhttp://www.codeproject.com/Messages/4539598/Agreement-with-craigg.aspxhttp://www.codeproject.com/Messages/4571148/Update.aspxhttp://www.codeproject.com/Messages/4857570/Good-Article.aspxhttp://www.codeproject.com/Messages/4995275/nice-article.aspxhttp://www.codeproject.com/Messages/5038778/Additional-Corrections.aspxhttp://www.codeproject.com/Messages/5166091/My-vote-of.aspxhttp://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C?fid=167845&df=90&mpp=25&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=26#xx0xxhttp://www.codeproject.com/Articles/1079659/Game-On-Intel-Edison-with-the-Xadow-Wearable-Kithttp://www.codeproject.com/Articles/51835/Windows-Mobile-iPhone-Android-Marketplace-Comparishttp://www.codeproject.com/KB/FAQs/MessageBoardsFAQ.aspxhttp://www.codeproject.com/script/Forums/Edit.aspx?fid=167845&floc=/Articles/9978/Complete-Comparison-for-VB-NET-and-Chttp://www.codeproject.com/Articles/1079659/Game-On-Intel-Edison-with-the-Xadow-Wearable-Kithttp://www.codeproject.com/Articles/51835/Windows-Mobile-iPhone-Android-Marketplace-Comparis

  • 8/19/2019 Complete Comparison for VB

    15/15

    3/18/2016 Complete Comparison for VB.NET and C# - CodeProject

    Permalink | Advertise | Privacy | Terms of Use | Mobile

    Web02 | 2.8.160311.1 | Last Updated 18 Apr 2005Select Language ▼

    Article Copyright 2005 by Amalorpavanathan Yagulasamy AMAL 

    Everything else Copyright © CodeProject, 1999‐2016

    Layout: fixed |

    fluid

    Refresh 1 2 3 4 5 6 7 8   Next »

     General News Suggestion Question Bug Answer Joke Praise Rant

    Admin

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    Forogar 5‐Jan‐12 14:11

    My Vote of 5 

    RaviRanjankr 28‐Oct‐11 5:45

    My vote of 5 

    Tarun K.S 6‐Jul‐11 3:45

    My vote of 4 MBigglesworth79 17‐Jun‐11 7:26

    mole holes 

    craigg75 13‐May‐11 0:04

    My vote of 5 

    Hry_ 6‐May‐11 3:04

    My vote of 1 

    DaveCS 18‐Apr‐11 3:03

    Re: My vote of 1 

    iProgramIt 21‐Aug‐15 23:08

    My vote of 1 

    ely_bob 28‐Mar‐11 16:59

    Re: My vote of 1 

    iProgramIt 21‐Aug‐15 23:07

    default T 

    PIEBALDconsult 24‐Feb‐11 8:30

    My vote of 1 

    chejarla balu 23‐Dec‐10 4:14

    http://www.codeproject.com/Messages/3708812/My-vote-of.aspxhttp://www.codeproject.com/Messages/3782844/default-T.aspxhttp://www.codeproject.com/Messages/5113850/Re-My-vote-of.aspxhttp://www.codeproject.com/Messages/3832619/My-vote-of.aspxhttp://www.codeproject.com/Messages/5113851/Re-My-vote-of.aspxhttp://www.codeproject.com/Messages/3859797/My-vote-of.aspxhttp://www.codeproject.com/Messages/3882123/My-vote-of.aspxhttp://www.codeproject.com/Messages/3890639/mole-holes.aspxhttp://www.codeproject.com/Messages/3929073/My-vote-of.aspxhttp://www.codeproject.com/Messages/3949164/My-vote-of.aspxhttp://www.codeproject.com/Messages/4064252/My-Vote-of.aspxhttp://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C?fid=167845&df=90&mpp=25&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=26#xx0xxhttp://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C?fid=167845&df=90&mpp=25&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=176#xx0xxhttp://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C?fid=167845&df=90&mpp=25&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=151#xx0xxhttp://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C?fid=167845&df=90&mpp=25&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=126#xx0xxhttp://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C?fid=167845&df=90&mpp=25&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=101#xx0xxhttp://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C?fid=167845&df=90&mpp=25&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=76#xx0xxhttp://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C?fid=167845&df=90&mpp=25&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=51#xx0xxhttp://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C?fid=167845&df=90&mpp=25&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=26#xx0xxhttp://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C?fid=167845&df=90&mpp=25&prof=False&sort=Position&view=Normal&spc=Relaxedhttp://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C?PageFlow=Fluidhttp://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C?PageFlow=FixedWidthmailto:[email protected]://void%280%29/http://www.codeproject.com/info/TermsOfUse.aspxhttp://www.codeproject.com/info/privacy.aspxhttp://developermedia.com/http://www.codeproject.com/Articles/9978/Complete-Comparison-for-VB-NET-and-C