0% found this document useful (0 votes)
6 views

USIT506 Enterprise Java

Uploaded by

sumitdhuri2023
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

USIT506 Enterprise Java

Uploaded by

sumitdhuri2023
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

1

INTRODUCING .NET
Unit Structure
1.0 Objectives
1.1 Introducing .NET
1.1.1 C#, VB, and the .NET Languages
1.1.2 Intermediate Language
1.1.3 Components of .Net Framework
1.1.4 Common Language Runtime (CLR)
1.1.5 The .NET Class Library
1.1.6 Common Type System (CTS)
1.1.7 Meta Data in .NET

.in
1.1.8 Common Language Specification (CLS)
1.5 Example Programs
1.6 Summary
es
1.7 Exercise
1.8 Reference
ot

1.0 OBJECTIVE
un

After going through this unit you will be able to,


1. Create and Console Application with basics code.
m

2. Create the Application using different types of statements and loops.


3. Know about namespaces and assemblies and how to create the same.
4. Create console application using delegates and methods.

1.1 THE .NET FRAMEWORK


• Microsoft .NET is much more than XML Web services.

• At the heart of Microsoft .NET is the .NET Framework, consisting


of the common language runtime and the class libraries.

• These two components provide the execution engine and


programming APIs for building .NET applications.

• Applications compiled for the .NET Framework are not compiled


directly to native code. Instead, they are compiled into an
1
Advanced Web intermediate language called Microsoft Intermediate Language
Programming
(MSIL).

• When an application is run for the first time, the common language
runtime just-in-time compiler compiles the MSIL code into native
code before it is executed.

• The common language runtime is more than a simple JIT compiler;


it is also responsible for providing low-level execution services,
such as

• garbage collection,

• exception handling,

• security services, and

• Run time type-safety checking.

• Because of the common language runtime's role in managing

.in
execution, programs that target the .NET Framework are sometimes
called "managed" applications.

• The .NET Framework also includes a set of classes for building


es
applications that run on the common language runtime.

• These class libraries provide rich support for a wide range of tasks,
including data access, security, file IO, XML manipulation,
ot

messaging, class reflection, XML Web services, user-interface


construction, text processing, ASP.NET, and Microsoft Windows
services.
un

• The most unique attribute of the .NET Framework is its support for
multiple languages.
m

• It provides support for over 20 programming languages including


Perl, Python, and COBOL.

• Relying on the common language runtime, code compiled with these


compilers can interoperate.

• The .NET Framework is composed of the four extended applications


named as four blue boxes—representing
1. ASP.NET,
2. Windows Forms,
3. ADO.NET and
4. XML, and subcomponents.

22
Introducing .NET

.in
es
This book uses the Visual Basic language, which enables you to create
readable, modern code. The .NET version of VB is similar in syntax to
older flavors of VB that you may have encountered, including “classic”
ot

VB 6 and the Visual Basic for Applications (VBA) language often used to
write macros in Microsoft Office programs.
un

1.1.1 C#, VB, and the .NET Languages

• This book uses the Visual Basic language, which enables you to
create readable, modern code. The .NET version of VB is similar in
m

syntax to older flavors of VB that you may have encountered,


including “classic” VB 6 and the Visual Basic for Applications
(VBA) language often used to write macros in Microsoft Office
programs such as Word and Excel. However, you cannot convert
classic VB into the .NET flavor of Visual Basic, just as you cannot
convert C++ into C#.

• This book uses C#, Microsoft’s .NET language of preference. C#


resembles Java, JavaScript, and C++ in syntax, so programmers who
have coded in one of these languages will quickly feel at home.
Interestingly, VB and C# are quite similar. Though the syntax is
different, both VB and C# use the .NET class library and are
supported by the CLR. In fact, almost any block of C# code can be
translated, line by line, into an equivalent block of VB code (and
vice versa). An occasional language difference pops up, but for the
most part, a developer who has learned one .NET language can
move quickly and efficiently to another.
3

You might also like