Learning
Great Learning
.NET Framework: An Introduction
The .NET Framework is a software development framework that primarily runs on
Microsoft Windows and is used for compiling and running applications written in
various languages. The framework has helped in the creation of various apps for
Windows mobile phones, the web, and other platforms. It supports over 60
programming languages, out of which 11 have been designed by Microsoft. VB.NET and
C# are the most popular languages among the supported ones.
The .NET Framework is owned, designed, and developed by Microsoft..NET is a
framework to develop software applications. The first beta version released in
2000. It has evolved from one version to another, with each version containing
advanced and user-friendly features. It also includes a Framework Class Library
(FCL), which is similar to the predefined functions in other programming languages.
The Common Language Runtime (CLR) is the execution environment for .NET
applications.
CLR (Common Language Runtime)
It is a program execution engine that loads and executes the program. It converts
the program into native code. It acts as an interface between the framework and
operating system. It does exception handling, memory management, and garbage
collection. Moreover, it provides security, type-safety, interoperability, and
portablility. CLR (Common Language Runtime)
Visual Studio: Overview and Features
Visual Studio is an integrated development environment used for developing software
applications, games, and more. It is also a product of Microsoft and supports over
36 programming languages. Its latest stable release is Visual Studio 2019, and it
also has a beta version known as Visual Studio 2022.
Visual Studio has several features, including a code editor, debugger, designer,
extensibility, and other tools. The code editor is used for coding programs using
the IDE or framework. The debugger helps in detecting errors and finding solutions.
The designer allows users to create applications easily using drag and drop
features. Extensibility allows for extending the code to create new versions of an
application. Other tools include the ability to integrate databases like SQL Server
or NoSQL RDBMS.
Visual Studio is a tool that supports different kinds of databases and
applications. To download Visual Studio, visit the official website and download
the Community version, which is free and suitable for learners and students. After
installation, coding can be done using programming languages like C#.
C# Program Structure
The structure of a C# program includes the following:
Using System: This imports the system library functions for the programming
language being used.
Namespace Identifier Name: This organizes and arranges the classes used in the
program.
Class: This is a collection of objects that perform operations within the class.
Main Function: This is where the program compilation starts.
Console.WriteLine: This is used to fetch statements from the user and put them on
the output screen.
Identifiers and Keywords
Identifiers are names given to user-defined entities like variables, classes,
functions, and methods that match the problem statement. Keywords, on the other
hand, are reserved terms already present in the C# library and should not be used