Presentation is loading. Please wait.

Presentation is loading. Please wait.

What is.NET? CS 351 Ed Gellenbeck. Today What is.NET? What Problems Does.NET Solve? What are.NET Framework Components?

Similar presentations


Presentation on theme: "What is.NET? CS 351 Ed Gellenbeck. Today What is.NET? What Problems Does.NET Solve? What are.NET Framework Components?"— Presentation transcript:

1 What is.NET? CS 351 Ed Gellenbeck

2 Today What is.NET? What Problems Does.NET Solve? What are.NET Framework Components?

3 What is.NET? A set of technologies for developing and using components to create: Web Forms Web Services Windows Applications.NET Framework 4 Developer Center http://msdn.microsoft.com/en-us/netframework/

4 .NET Framework Provides support for many languages VB, C#, J#, C++, PERL, Python, Eiffel, Cobol,.. Conform to Common Language Infrastructure specifications.NET is included with Windows Mono is an open-source implementation of.NET for Linux, Solaris, Mac OS X, Windows, and Unix

5 Before.NET Operating System (Windows, Linux, Unix,...) Unmanaged Applications

6 Operating System (Windows, Linux, Unix,...) Unmanaged Applications Managed Applications Class Library Common Language Runtime With.NET

7 .NET Web Applications Operating System (Windows, Linux, Unix,...) Unmanaged Applications Managed Applications Class Library Common Language Runtime Web Server (IIS) ASP.NET Web FormsWeb Services Web Applications

8 Goals of.NET Uniform model for Desktop and Web programming So far Desktop programming object-oriented compiled (C++) extensive class libraries Web programming ASP (not object-oriented) interpreted (VBScript, JavaScript, PHP,...) specialized libraries Under.NET Desktop and Web programming object-oriented (ASP.NET) compiled (C#, VB.NET) uniform class library

9 Goals of.NET Interoperability between programming languages So far - millions of lines of code in C++, Fortran, Visual Basic,... - very limited interoperability Under.NET - binary compatibility between more than 20 languages (C#, C++, VB.NET, Java, Eiffel, Fortran, Cobol, ML, Haskell, Pascal, Oberon, Perl, Python,...) Public Class A Public x As Integer Public Sub Foo()... End Class class B : A { public string s; public void Bar() {...} } class Client feature obj: B;... create obj; obj.Bar;... end class in VB.NET subclass in C#used in Eiffel

10 The.NET Framework Common Language Specification Common Language Runtime VBC++C# ASP.NET: Web Services and Web Forms J#… Windows Forms.NET Framework Base Classes ADO.NET: Data and XML Visual Studio.NET PerlCobol Windows (Win32, IIS, COM+, …)

11 Interoperability C#C++VB... compiler MSIL code (+ metadata) compiler machine code loader verifier JIT compiler if (a > b) max = a; else max = b; IL_0004: ldloc.0 IL_0005: ldloc.1 IL_0006: ble.s IL_000c IL_0008: ldloc.0 IL_0009: stloc.2 IL_000a: br.s IL_000e IL_000c: ldloc.1 IL_000d: stloc.2 mov ebx,[-4] mov edx,[-8] cmp ebx,edx jle 17 mov ebx,[-4] mov [-12],ebx... C# CIL Intel code

12 System.Data Design OLEDB SQLTypes SQL System Globalization Diagnostics Configuration Collections Resources Reflection Net IO Threading Text ServiceProcess SecurityRuntime InteropServices Remoting Serialization System.Xml XPath XSLTSerialization System.Web ConfigurationSessionState CachingSecurity Services Description Discovery Protocols UI HtmlControls WebControls System.Drawing Imaging Drawing2D Text Printing.NET Framework Classes System.Windows.Forms FormButton MessageBoxListControl Same classes for all languages!!!


Download ppt "What is.NET? CS 351 Ed Gellenbeck. Today What is.NET? What Problems Does.NET Solve? What are.NET Framework Components?"

Similar presentations


Ads by Google