![]() |
|
|
| |
|
||||
Based on Microsoft's Visual Basic (VB), Visual Basic .NET (VB.NET) is a computer language that can be viewed as an evolutionary development from VB version 6.0 and earlier. The changes in the computer language are targeted to use Microsoft's .NET Framework and to bridge the gap between it and other .NET languages such as C#. Visual Basic .NET is, in general, syntactically similar to Visual Basic, but includes object-oriented features and an object hierarchy based on the .NET framework that makes it a more complex system than other variants of BASIC. A migration wizard is available in Visual Studio .NET, although many features must be recoded by hand due to the extensive changes in the object library. Like C#, VB.NET compiles to Common Intermediate Language (CIL) which needs to be JITted as it is executed. The CIL produced by VB.NET is identical to that produced by C#, which is why C# and VB.NET (and Managed C++ for that matter) can communicate directly with one another. Though the CIL is identical between languages, C# has some features that VB.NET lacks, and vice versa. For example, VB.NET supports late binding, where the type of an object (or variable) can be determined at run-time.
Evolution from earlier versions of Visual BasicStarting from v1 and continuing through the .NET revision, Visual Basic has become more complex and more powerful. The following example gives an idea: Classic VB example: Private Sub Command1_Click()
MsgBox "Hello, World"
End Sub
A VB.NET example: Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click
MsgBox("Hello, World")
End Sub
There is extensive documentation that covers changes in the syntax (rules of the language), the changes in debugging applications, deployment and terminology. Controversy concerning VB.NETMany long-time Visual Basic programmers have complained loudly about Visual Basic .NET, because it drops a large number of language features that were in earlier versions of Visual Basic (which are now no longer sold). However, to balance the argument, VB.NET is a more powerful language in many respects, incorporating modern object-oriented programming paradigms. Indeed, some experts in Visual Basic .NET have characterized it as an entirely new programming language. Visual Basic programs that relied heavily on such features as databases and graphics will, in general, have difficulty in migrating to VB.NET, while programs that are mainly algorithm based, such as mathematical programs, can be migrated with fewer difficulties. For Visual Basic 2005, the successor to VB.NET, Microsoft is adding features that will reintroduce some of the ease of use that previous versions of VB had, including a class library called External links
See also
|
||
|
|
|
|
|
|
Copyright 2008 WordIQ.com - Privacy Policy
::
Terms of Use
:: Contact Us
:: About Us This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Visual Basic .NET". |