200 likes | 355 Views
What is Dot NET. It is a major technology change. Just like the computer world moved from DOS to Windows, now the technology is moving to .NET. NET technology was introduced by Microsoft, to catch the market from the SUN's Java.
E N D
What is Dot NET • It is a major technology change. • Just like the computer world moved from DOS to Windows, now the technology is moving to .NET. • NET technology was introduced by Microsoft, to catch the market from the SUN's Java. • Few years back, Microsoft had only VC++ and VB to compete with Java . • With the world depending more and more on Internet/Web and java related tools, Microsoft seemed to be loosing the battle. • One fine morning, they announced : "We are not sleeping. We have the answer for you.". And that answer was .NET.
History of Dot Net • Microsoft put their best men at work for a secret project called Next Generation Windows Services (NGWS)., under the direct supervision of Mr. Bill Gates. • Sometime in the July 2000, Microsoft announced a whole new software development framework for Windows called .NET in the Professional Developer Conference (PDC). • Microsoft also released PDC version of the software for the developers to test. • After initial testing and feedback Beta 1 of .NET was announced. • Microsoft then announced Beta 2 after it incorporated many changes suggested by the community into the software. • Finally, in March 2002 Microsoft released final version of the .NET framework.
Short comings of the present programming languages • Microsoft's VC++ was a powerful tool. But it was too complex. It has too many datatypes, and developers had to learn many libraries including WIndows SDK, MFC, COM etc. • Even though Visual basic was very easy to use, it was not very flexible to develop serious applications. • SUN's Java became a very good choice for these reasons. It had the flixibility and power of C++ and at the same time easy enough to catch the attention of VB programmers. • Microsoft recognised these factors and they introducd the .NET considering all these factors.
Features of DOT NET • It is a pure object oriented programming model. • It is a platform neutral framework. • It supports many programming languages, including C# (C Sharp), VB.NET, J# and managed C++. etc. • .NET provides a common set of class libraries, which can be accessed from any .NET based programming language. There will not be separate set of classes and libraries for each language. • If we know any one .NET language, we can write code in any .NET language!! • In future versions of Windows, .NET will be freely distributed as part of operating system and users will never have to install .NET separately.
Flavours of DOT NET • .NET Framework SDK: -As with most of the programming languages, .NET has a complete Software Development Kit (SDK) - more commonly referred to as .NET Framework SDK – • that provides classes, interfaces and language compilers necessary to program for .NET.
Flavours of DOT NET • Common Language Runtime:-CLR is a runtime environment in which programs written in C# and othe DOT NET languages are executed. • It also supports Cross Language Interoperatibility. • Whether we write code in VB.NET or C#, when we compile, our code will get converted to MSIL (Microsoft Intermediate language).
Flavours of DOT NET • Platform Independent:-The code we write is platform independent, because whatever you write is getting compiled into MSIL. • But when you execute the MSIL, the .NET framework in the target system will convert the MSIL into native platform code.
Flavours of DOT NET • Common Type System:-The .NET framework provides multiple language support using the feature known as common type system built into the CLR. • CTS supports a variety of types and operations and therefore calling one language from the other does not require type conversions.
Flavours of DOT NET • Development Tools:-VS.NET is a powerful and flexible IDE that makes developing .NET applications easy. • Some of the features of VS.NET that make us more productive are: • Drag and Drop design • IntelliSense features • Syntax highlighting and auto-syntax checking • Excellent debugging tools • Easy project management • less lines of code required • requires less time to develop • lower deployment costs
Visual Studio Dot NET IDE • Visual Studio Dot net is Microsofts IDE for creating running and debugging programs written in a variety of .NET programming languages. • When Visual studio .NET is executed the start page is displayed. • When clicked get started page will load a page which contains the names of the recent projects. • Other links to the start page offer information resources about .NET
Various windows in Visual StudioIDE • Solutions Explorer Window • Intellisense Code designer Window • Properties Window • Dynamic Help Window • Toolbox Window • Object Browser
Visual Studio Dot NET IDE • There are two buttons on the page open Project and new project. • Which are used to open an existing project and create a new project.
Dot net framework • Dot NET has gone through 3 significant phases of development:- • OLE technology • COM technology • .NET technology
OLE Technology • Abbreviation of Object Linking and Embedding • It enables you to create objects with one application and then link or embed them in a second application. • Embedded objects retain their original format and links to the application that created them. • This enabled users develop applications which requires interoperability between various products such as MS Word and MS Excel.
COM Technology • Microsoft introduced the component bases model in 1995 for developing software programs to overcome the limitations of the current system. • In the component based approach a program is broken into a number of independent components where each one offers a particular service. • Each component can be developed and tested independently and then integrated into the main system.
Benefits of COM approach • Reduces overall complexity of the software. • Enables distributed development across multiple departments. • Enhance software maintainability
.Net technology • This provides a new level of inter operability by compiling code into IL(intermediate language). • An inherent characteristic of IL code is metadata.
Common language runtime • CLR is provides a number of services that includes:- • Loading and execution of programs • Memory isolation for applications • Verification of type safety • Compilation of IL into native executable code • Providing metadata • Memory management • Enforcement of security • Interoperability with other system • Managing exceptions and errors
Common Language runtime C# source code compiler IL and metadata Metadata Engine Linker Exe code Class loader Basic class library JIT compiler Machine dependant code Runtime manager output
Common Type System • The Common type system is a standard that specifies how type definitions are represented in computer memory. • It provides cross language inter operability.