Common Language Runtime: Provides

peruvianwageslaveInternet και Εφαρμογές Web

5 Φεβ 2013 (πριν από 4 χρόνια και 11 μήνες)

282 εμφανίσεις

VISUAL PROGRAMMING


Lab Instructor:

Saad

Hashmi


saadhashmi@bahria.edu.pk



BS (GIKI)




Lab # 01


Dated: 15
th

Feb’ 2011


WHAT IS THE .NET FRAMEWORK?

-
Platform
created by
Microsoft for
developing
applications.


-
No restriction


the .NET Framework enables the creation of
Windows applications, Web applications, Web services etc
.


-
The .NET Framework has been designed so that it can be
used from any language, including C#, C++, Visual Basic,
JScript
, and even older languages such as COBOL. Not
only
do all of these have access to the .NET Framework, but they
can also communicate with each other.


-
Provide
a runtime environment that simplifies software
deployment and reduces the chances of version conflicts.


Visual Programming
Lab






Saad Hashmi, Bahria University Islamabad

.NET Framework has 4 components:


Common Language Runtime:

P
rovides low
-
level core services to
the application and manages the code.



Class Library:

It is a huge library of code. This
library is
categorized into
different modules
e.g.
one module contains the building
blocks for Windows applications, another for
network programming
, and
another for Web
development.



Common Type System:

It is a standard
that specifies how
Type

definitions and specific values of
Data
-
Types are represented
in computer
memory
. A
type is a representation of
data, such
as ‘‘a 32
-
bit signed
integer
’’. It
facilitates
interoperability between languages.



Dynamic Language Runtime:

Is
built on top of the common
language
runtime. Provides
language services
for dynamic
languages
such as
Ruby
and
Python. Dynamic
language runtime gives you the
flexibility to choose the most
appropriate language
to solve a specific
business need.


Visual Programming
Lab






Saad Hashmi, Bahria University Islamabad

What is a Dynamic Language?



In languages
which
are
statically
typed (such as C, C++, Java, C#),
the
compiler attempts
to prove
type safety, and, if it cannot, generates an
error. In a dynamic language,
this attempt
at proving type safety is not
made.



In
addition, most dynamic
languages perform
more complex type
operations, such as determining the correct
method overload
, at runtime
whereas C# performs this type of resolution at compile time
.



Dynamic Language provide direct tools to make use of certain
behaviors such as: include extension of the program, by adding new
code, by extending objects and definitions, or by modifying the type
system, all during program execution.

Visual Programming
Lab






Saad Hashmi, Bahria University Islamabad

Introducing C Sharp (C#)


C#

is
a multi
-
paradigm programming language encompassing
declarative
, functional,
object
-
oriented,
and component
-
oriented
programming
disciplines.



It is an evolution of the C and C++ languages and has been created
by Microsoft specifically to
work with the .NET platform
.



It has
the advantage
of being the only language designed from the
ground up for the .NET Framework and
is the
principal language
used in
.
NET

Visual Programming
Lab






Saad Hashmi, Bahria University Islamabad

Applications You Can Write with C#


Windows applications:

Applications
, such as Microsoft Office,
that have a
familiar Windows look
and feel about them. This is made
simple by using the Windows Forms module of
the .NET
Framework,
which is a library of
controls
(such as buttons, toolbars, menus, and
so
on
) that you can use to build a Windows user interface (UI).

Alternatively
, you can use
Windows Presentation
Foundation
(WPF) to build Windows applications, which gives you
much greater
flexibility and power
.



Web
applications:


Web
pages such as those that might be
viewed through any Web
browser. The
.NET Framework includes a
powerful system for generating Web content
dynamically, enabling
personalization, security, and much more. This system is called ASP.NET
(
Active Server
Pages .NET), and you can use C# to create ASP.NET
applications using Web
Forms. You
can also write applications that run
inside the browser with Silverlight.

Visual Programming
Lab






Saad Hashmi, Bahria University Islamabad

The Relationship between C# and the
.NET Framework

Visual Programming
Lab






Saad Hashmi, Bahria University Islamabad

.NET
Technology Spectrum

Visual Programming
Lab






Saad Hashmi, Bahria University Islamabad