C# Compared—Other NET Languages

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search
CSharp-Online.NET:Articles
C# Articles

C# Compared to Other Languages

© 2005 C. Gunnerson, et al.

Other .NET Languages

Visual C++ and Visual Basic have both been extended to work in the .NET world. In the Visual C++ world, a set of "Managed Extensions" have been added to the language to allow programmers to produce and consume components for the Common Language Runtime. The Visual C++ model allows the programmer more control than the C# model, in that the user is allowed to write both managed (garbage-collected) and unmanaged (using new and delete) objects. A .NET component is created by using keywords to modify the meaning of existing C++ constructs. For example, when the __gc keyword is placed in front of a class definition, it enables the creation of a managed class and restricts the class from using constructs that cannot be expressed in the .NET world (such as multiple inheritance). The .NET system classes can also be used from the managed extensions.

Visual Basic has also seen considerable improvements. It now has object-oriented concepts such as inheritance, encapsulation, and overloading, which allow it to operate well in the .NET world.


See also


Previous_Page_.gif Next_Page_.gif


Personal tools