M.Sc. (Computer Science) Sem-Ii Course Code: 19Sccmpp206 Course Name: Dot Net
M.Sc. (Computer Science) Sem-Ii Course Code: 19Sccmpp206 Course Name: Dot Net
(Computer Science)
SEM-II
Course Code : 19ScCmpP206
Course Name : DOT NET
Chapter 1
DOTNET Framework
Chapter 1
DOTNET Framework
Yesterday
Yesterday We We
hadhad learned-- the following points which are
discussed
mentioned:
Introduction of ASP.NET
Features of ASP.NET
Advantage of ASP.NET
IIS Server
Features of IIS
Working of IIS with ASP.NET Application
Working With IDE
Web Form/Web Page
Components of Web Form
Now we shall start the next Lecture ……….
Chapter 1
DOTNET Framework
Points to be covered in today’s Lecture
1.3Common
Runtime (CLR).Language Runtime
The code which runs below the CLR is called as Managed Code. Developers
not required on managing the memory if the programs are running below
to be cont…
Chapter 1
DOTNET Framework
Function of CLR
1. Code conversion:-
CLR provides the services and runtime environment to the
MSIL code. Internally CLR includes the JIT(Just-In-Time)
compiler which converts the MSIL code to machine code which
1. further. executed by CPU.
2. Exception Handling:-
CLR supports a standard exception-handling
mechanism that works across all languages, allowing
every program to use a common error-handling
mechanism to be cont…
Chapter 1
DOTNET Framework
Function of CLR
3. Type Safety :-
Types used in the application are verified with CTS or CLS
standards support by CLR .This provides type safety.
1. 4. Garbage
. collection:-
The memory of unused objects is freed
automatically with the help of garbage collector.
to be cont…
Chapter 1
DOTNET Framework
Function of CLR
5. Security :-
CLR converts the MSIL code into the native code .it performs
various security checks at runtime to make sure that the code is
safe to execute and that the code is not breaching any security
1.
requirements.
.
CLR provides secure execution for .NET
application. CLR use Role-Based Security and Code Access
Security for providing Secure Code Execution
6. Language Independence:--
CLR ensures language interoperability using
common type System(CTS).
Chapter 1
DOTNET Framework
1. .
to be cont…
Chapter 1
DOTNET Framework
1. .
to be cont…
1.1 Introduction to DOTNET
to be cont…
Chapter 1
DOTNET Framework
.NET Execution Model/.NET compilation Process:-
2. Runtime process.
The Common Language Runtime (CLR) includes a JIT compiler for
converting MSIL to native code.
GC can access the list of active roots that JIT complier and the
runtime environment.
to be cont…
Chapter
1.1 1
Introduction to DOTNET
DOTNET Framework
1.4 Common Language Integration
1. .
to be cont…
1.4 Common Language Integration
1. .
Conversion between data types can be done in two
ways by casting:
Implicit casting
Explicit casting
to be cont…
Chapter 1
DOTNET Framework
1.4.1 Common Type System(CTS)
Type Casting or Type Conversion:-
Implicit casting
-Implicit casting doesn't require a casting operator. This
casting is normally used when converting data from
1. smaller integral
. types to larger or derived types to the base
type
Explicit casting
Conversion Methods
Type Casting operator(explicit
casting)
Convert Class using
1. .
Int.Parse()
Int.TryParse()
to be cont…
Chapter 1
DOTNET Framework
1.4 Common Language Integration
1.4.1 Common Type System(CTS)
Conversion Methods
Int.Parse() Convert Class Int.TryParse()
It is used to convert It is used to convert It is used to convert
string to int any datatype to int string to int
1. .
Can not handle null Can handle null values Can handle null values
values
Will not check whether Will not check Will check whether
the type of parsing is whether the type of the type of parsing is
valid or invalid parsing is valid or valid or invalid
invalid
to be cont…
Chapter 1
DOTNET Framework
1.4 Common Language Integration
1.4.2 Reflection API
Reflection is the process of finding out about the internals
Of an application without having access to the source code. You can
use reflection to find all classes in an assembly and all the methods,
properties and events that might to be supported by each of those
1. classes. .
to be cont…
Chapter 1
DOTNET Framework
1.5 User and Program Interface
Window Forms
1. Web.Forms
Console Application
to be cont…
Chapter 1
DOTNET Framework
Integrated Development Environment