VB.NET Programming — Study Notes

Unit 01

Introduction to the .NET Framework

1 Question 6 Marks VB.NET
01
6 Marks Question

Explain .NET Framework

Introduction

The .NET Framework is a software development platform developed by Microsoft. It was first launched on 13 February 2002 and provides a common environment to build and run applications.

It supports multiple programming languages such as C#, VB.NET, and Visual Basic, allowing developers to create Windows, web, mobile, and console applications.

Definition

The .NET Framework is a language-neutral and object-oriented platform that provides a virtual environment to execute applications developed in different .NET languages.

Note: It mainly runs on the Windows platform and is not fully platform-independent like Java.

Architecture / Components of .NET Framework

The major components of the .NET Framework are:

CLR Common Language Runtime
  • It is the execution engine of the .NET Framework.
  • Converts source code into MSIL/CIL (bytecode) and then into machine code using JIT compiler.
  • Provides services like memory management, security, and exception handling.
CTS Common Type System
  • Defines how data types are declared and managed in memory.
  • Ensures cross-language compatibility between .NET languages.
  • Types are divided into: Value types and Reference types.
CLS Common Language Specification
  • A set of rules that every .NET language must follow.
  • Ensures interoperability between languages.
  • Example: C# uses semicolon but VB.NET does not — CLS allows both to work together.
BCL Base Class Library
  • Provides a rich collection of reusable classes and functions.
  • Supports many languages like C#, F#, Visual C++.
  • Includes user-defined and predefined class libraries.
FCL Framework Class Library
  • Provides classes, interfaces, and data types for building applications.
  • Used to develop desktop, web, and mobile apps.
  • Includes features like: Object types, Data structures, Garbage collection, Security and database connectivity.
.NET .NET Assemblies
  • The basic building block of .NET applications.
  • Contains compiled code (MSIL) and metadata.
  • Stored as DLL or EXE files.

Design Principles of .NET Framework

Interoperability Old and new versions work together.
Portability Applications run across Windows platforms.
Security Built-in verification and validation mechanisms.
Memory Management Automatic garbage collection frees unused memory.
Simplified Deployment Easy packaging and installation of applications.
Conclusion The .NET Framework is a powerful, language-independent platform that provides a managed runtime environment, rich class libraries, and strong security features. It simplifies application development and ensures interoperability between different programming languages in the Microsoft ecosystem.