You are on page 1of 13

Getting Started With .

NET
What is .NET ?

“.NET is the Microsoft Web services strategy to connect


information, people, systems, and devices through
software. Integrated across the Microsoft platform,
.NET technology provides the ability to quickly build,
deploy, manage, and use connected, security-
enhanced solutions with Web services. “
.NET Framework

The .NET Framework is an integral Windows component that supports building and
running the next generation of .NET Applications and XML Web Services.
In other words we can say that it is platform on which we are going to make and
manage the .NET Application and .NET Services.
.NET Framework
.NET Framework Responsibilities

 To provide a consistent object-oriented programming environment


whether object code is stored and executed locally, executed locally
but Internet-distributed, or executed remotely.
 To provide a code-execution environment that minimizes software
deployment and versioning conflicts.
 To provide a code-execution environment that promotes safe
execution of code, including code created by an unknown or semi-
trusted third party.
 To provide a code-execution environment that eliminates the
performance problems of scripted or interpreted environments.
 To make the developer experience consistent across widely varying
types of applications, such as Windows-based applications and
Web-based applications.
.NET Framework Base Class Libraries

It is a collection of reusable types that tightly integrate with the common language runtime. The class
library is object oriented, providing types from which your own managed code can derive functionality.
This not only makes the .NET Framework types easy to use, but also reduces the time associated
with learning new features of the .NET Framework. In addition, third-party components can integrate
seamlessly with classes in the .NET Framework.
It also enable you to accomplish a range of common programming tasks, including tasks such as string
management, data collection, database connectivity, and file access. In addition to these common
tasks, the class library includes types that support a variety of specialized development scenarios. For
example, you can use the .NET Framework to develop the following types of applications and
services:
 Console applications.
 Windows GUI applications (Windows Forms).
 ASP.NET applications.
 XML Web services.
 Windows services.
Common Language At Runtime

The common language runtime (CLR) is the foundation of the .NET


Framework. We can think of the CLR as an agent that manages
code at execution time, providing core services such as memory
management, thread management, and remoting, while also
enforcing strict type safety and other forms of code accuracy
that promote security and robustness. In fact, the concept of
code management is a fundamental principle of the CLR. Code
that targets the CLR is known as managed code, while code
that does not target the CLR is known as unmanaged code.
Components of CLR
 Common Type System (CTS)
 Common Language Specification (CLS)
 Just-In-Time Compiler (JIT)
Common Type System (CTS)

 It defines how data types are declared, used, and managed in the runtime, and is
also an important part of the CLR 's support for cross-language integration.
 It also defines rules that languages must follow, which helps ensure that objects
written in different languages can interact with each other.
Common Language Specification (CLS)

 It is used to fully interact with other objects regardless of the


language they were implemented in, objects must expose to callers
only those features that are common to all the languages they must
interoperate with. For this reason, CLS, which is a set of basic
language features needed by many applications, has been defined.
 The CLS helps enhance and ensure language interoperability by
defining a set of features that developers can rely on to be available
in a wide variety of languages.
Compilation process of .NET program

Source Code

Compiler

.Exe/.Dll
(MSIL)

Class Loader

JIT Compiler

Managed Native
Code

Execution
Just-In-Time Compiler

Before we can run Microsoft intermediate language (MSIL), it must be converted by a .NET
Framework just-in-time (JIT) compiler to native code, which is CPU-specific code that runs on the
same computer architecture as the JIT compiler. Because the common language runtime
supplies a JIT compiler for each supported CPU architecture, developers can write a set of MSIL
that can be JIT-compiled and run on computers with different architectures.
Type of JIT Compliers
 Pre JIT
Compiles complete source (MSIL) code to Native code in a single Compilation.
 Econo JIT
Compiles only MSIL code of those methods that are called at Runtime .
 Normal JIT
This compiler compiles only MSIL code of those methods that are called at Runtime and that
converted (native) code is stored in Cache.
Assembly

“Assembly is the building block of .NET Framework


applications; they form the fundamental unit of
deployment, version control, reuse, activation
scoping, and security permissions. An assembly
is a collection of types and resources that are
built to work together and form a logical unit of
functionality. An assembly provides the common
language runtime with the information it needs
to be aware of type implementations.”
Visual Studio .Net

Product Language Framework Language S/w needs H/w needs


Version Version Support
VB.NET, Recommended Recommended
VS.NET 7.0 1.0
VC#.NET, (MS Window 2000 Server SP4 , (256MB RAM)
2002 VC++.NET XP Prof. SP2)
VB.NET, Recommended Recommended
VS.NET 7.1 1.1
VC#.NET, (MS Window 2000 Server (256MB RAM)
2003 VC++.NET SP4,MS Window 2003 Server ,
VJ#.NET, XP Prof. SP2)
Mobile Programming.
VB.NET, Recommended Recommended
VS.NET 8.0 2.0
VC#.NET, (MS Window 2000 Server (512MB RAM)
2005 VC++.NET SP4,MS Window 2003 Server ,
VJ#.NET, XP Prof. SP2)
Mobile Programming
VB.NET, Recommended Recommended
VS.NET - 3.0/3.5
VC#.NET, (MS Window Vista, MS Server (1GB RAM)
2008 VC++.NET 2007.
Beta 2 VJ#.NET,
Mobile Programming

You might also like