Unit - 1
Unit - 1
.Net framework provides the new support for software development and
operating system in windows. The .Net framework wraps the operating
system with its own code.
In a VB.Net application, program code is compiled into the CLR’s
(Common Language Runtime) Intermediate language (named MSIL or IL
for short).
The CLR is the module that actually runs your VB.NET code.
When you run the application, that IL code is translated into the binary code.
The.NET frame work class library holds on immense amount of prewritten
code that all the applications you create with visual basic, visual C++, C#
and other languages.
We can work on a machine that has the .NET frame work, and therefore the
CLR and the .NET framework class library, installed.
.NET framework organizes its classes into namespaces.
FCL provides user interface, database connectivity, cryptography, web
development and many more for Example services like mobile application.
.Net Application
.NET Framework
The .Net Framework supports more than 60 programming languages such as C#,
F#, VB.NET, J#, VC++, JScript.NET, APL, COBOL, Perl, Oberon, ML, Pascal,
Eiffel, Smalltalk, Python, Cobra, ADA, etc.
Class Loader: As and when needed, it loads the classes into the
system memory.
This means that the code can be executed on any platform that
supports the .NET CLR as it converts the MSIL code to Native code.
Type Checker: This feature ensures that objects are always accessed
in compatible ways. Therefore, the CLR will prohibit a code from
assigning a 10-bytes value to an object that occupies 8 bytes.
Namespaces:
Namespaces help you to create logical groups of related classes and
interfaces that can be used by any language targeting the .NET
framework.
Namespaces allow you to organize your classes so that they can be easily
accessed in other applications.
Namespace can also be used to avoid any naming conflicts between
classes that have the same names. For example, you can use two classes
with the same name in an application provided they belong to different
namespaces.
You can access the classes belonging to a namespace by simply
importing the namespace into an application. The .NET framework uses a
dot (.) as a delimiter between classes and namespaces.
E.g. System.Console represents the Console class of the System
namespace.
Win Forms:
It is also known as Windows Forms. It is used to create the GUI
(Graphical User Interface) for windows desktop application.
The idea of Win Form has been taken from Windows Foundation Classes
(WFC) which was used for Visual J++.
It also provides integrated and unified way of developing GUI. It has a
rich variety of windows controls and user interface support. E.g. Text
Box, Button, Check Box, Containers etc.
With Win Forms, we can make a single user interface and use it in
VC++, VB and C#.
Using Visual Studio.NET, we can simply design the GUI by dragging the
controls on a form. And this is all made possible because Visual Studio
NET as it uses the "System.Winforms" namespace to draw the GUI.
Web Services: Web Services are the applications that run on a Web Server
and communicate with other applications. It uses a series of XML (standard
used for storing, carrying and different requests. They are the small unit of
code which is design to handle limited exchanging data over the internet)
based communicating protocols that respond to of task. They are operating
system and programming languages independent. It connects people, system
and devices. One example could be flight schedules and ticket reservation
systems.
SOAP: Stands for Simple Object Access Protocol. It's the communication
protocol for Web Services.
independent and are generated by the language specific compiler from the
source code.
During the compile time, the compiler converts the source code
into Microsoft Intermediate Language (MSIL).
Metadata: Metadata means data about the data. In NET, metadata is the
declarative information which is produced at compile time. It includes all
.NET files and assembly. It allows loading and locating code, enforcing code
security, generating native code, and providing reflection at runtime. In data
processing, metadata is definitional data that provides information about or
documentation of other data managed within an application or environment.
Important Questions:
1. What is CTS?
2. Explain components of .NET Framework.
3. Discuss MSIL.
4. Define Namespace.
5. Explain CLR and Class Library in detail.
6. Explain .NET framework in detail.
7. What is garbage collection?
8. What is FCL?
9. Expalin CLR, CTS and FCL in detail.