Web Design that taps into the haromny and vision of your dreams.

Benefits of using the .Net Framework

Why is .Net Framework best?

Written By on in C#

396 words, estimated reading time 2 minutes.

There are many advantages that .Net offers over traditional languages such as C++.

Introduction to the .Net Framework Series
  1. What is Microsoft .Net?
  2. Benefits of using the .Net Framework
  3. Languages in the .Net Framework
  4. The C# vs Visual Basic Question
  5. Common Language Runtime
  6. The .Net Common Language Specifications
  7. Global Assembly Cache (GAC)

These are all taken from the previous tutorials are listed here for your convenience. There are a few new points thrown in as well. Most of these points are a re-iteration of those in the previous .Net tutorials.

  • The .Net Framework, provides the necessary compile-time and run-time platform to build and run .Net based applications.
  • The .Net platform is designed with ease of use and code re-use in mind and features many programming languages that can interact with each other.
  • Common Language Specification means that data types in all .Net applications are the same, so no type conversion is required when calling C# or C++ .Net methods from Visual Basic, or vice-versa.
  • Base Class Library provides hundreds of predefined classes that can be used.
  • Code developed for the .Net framework is portable between desktop, server and hand-held architecture.
  • Memory leaks are significantly reduced as the .Net Common Language Runtime provides a managed environment where memory is maintained by the Garbage Collector. The CLR also manages security, deployment and execution.
  • Improved security between remote services
  • Inbuilt XML readers/writers/parsers and also has the ability to serialise structures to XML format.
  • C# is a language specifically designed for the .Net platform, unlike Visual Basic and C++ which have been adapted to accommodate the framework.

The framework does have its disadvantages, however. Because all code is "compiled" into MSIL code, regardless of the language it was coded in, the MSIL code needs to be further compiled into the native code for the platform it is running on. When an application is compiled to MSIL code it is more accurate to say that it is being translated because MSIL is a programming language similar to assembler. This MSIL code can be dissembled by tools such as ildasm and .Net Reflector to reveal the original source code (minus a few non-important items such as white space, comments and so on).

As long as you don't mind source code being distributed .Net is fine. ASP.Net and web services are not affected by this since the executable is not directly accessible, however, if you create a web application to distribute or sell, the code can be seen by anyone with access to the executable and a decompiler. There are tools available to help combat this and we will discuss the decompilation issue in a later tutorial when we look at security.

Last updated on: Friday 23rd June 2017


Anilkumar Para

Anilkumar Para

Data in site is good. But there is a chance to improve

Reply to Anilkumar Para


Leave a Reply

Your email address will not be published.

If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.

Copyright © 2001-2018 Tim Trott, all rights reserved. Web Design by Azulia Designs

This web page is licensed for your personal, private, non-commercial use only.

Disclaimer, Privacy & LegalSitemapContact Me