CIS 330 -.NET Applications1 Chapter 2 –.NET Component- Oriented Programming Essentials.

Slides:



Advertisements
Similar presentations
By Sam Nasr September 28, 2004 Understanding MSIL.
Advertisements

Introduction to .NET Framework
.NET Framework Overview
Tahir Nawaz Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a.
Using.NET Platform Note: Most of the material of these slides have been taken & extended from Nakov’s excellent overview for.NET framework, MSDN and wikipedia.
.NET Session Prepared By : Manu Sharma IBE Team. Topics Types of.NET Applications.NET Framework CLR Garbage Collection Importance of.NET.
Henrico Dolfing Business Segment Partners. Océ Document Technologies GmbH2 June, NET Framework Version 3.0.
.NET Technology.
Overview of the.NET Framework. What is the.NET Framework A new computing platform designed to simplify application development A consistent object-oriented.
Advanced Object-Oriented Programming Features
Introducing the Common Language Runtime for.NET. The Common Language Runtime The Common Language Runtime (CLR) The Common Language Runtime (CLR) –Execution.
.NET’s CLR How does it really work? 7/2/20151Bhavani Sankar Ikkurthi CS 795 Presentation.
Introducing the Common Language Runtime. The Common Language Runtime The Common Language Runtime (CLR) The Common Language Runtime (CLR) –Execution engine.
2. Developing in.NET and C#. 2 Microsoft Objectives “Microsoft.NET development is based on an underlying framework of tools and classes. These tools and.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
Overview of Microsoft.Net and Vb.Net ITSE 2349 Spring 2002 Material from Microsoft.Net an Overview for ACC faculty by Stuart Laughton and Introduction.
A First Program Using C#
Lecture Roger Sutton CO530 Automation Tools 5: Class Libraries and Assemblies 1.
.NET Framework Introduction: Metadata
Introduction to .Net Framework
CIS NET Applications1 Chapter 10 – Remoting.
1 8/29/05CS360 Windows Programming Professor Shereen Khoja.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
The Metadata System1. 2 Introduction Metadata is data that describes data. Traditionally, metadata has been found in language- specific files (e.g. C/C++
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
Session 1 - Introduction and Data Access Layer
11 Getting Started with C# Chapter Objectives You will be able to: 1. Say in general terms how C# differs from C. 2. Create, compile, and run a.
.NET Framework & C#.
 Internet providing backbone for applications  Use of several web sites and devices to provide one complete solution  Software as services  Quick software.
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
Understanding Code Compilation and Deployment Lesson 4.
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
.NET Framework Overview
ASSEMBLY. A SSEMBLY Assemblies are the fundamental units of applications in the.net framework An assembly can contain classes, structures, interfaces.
Introduction .NET Framework
ASSEMBLIES AND THE GAC CHAPTER 1, LESSONS 4-7 & LAB.
Lecture 1 Programming in C# Introducing C# Writing a C# Program.
Component-Based Software Engineering Introduction to.NET Paul Krause.
.NET Framework Danish Sami UG Lead.NetFoundry
MSIL & CLI Kun-Yuan Shieh.
1.NET FRAMEWORK CE-105 Spring 2007 Engr. Faisal ur Rehman.
.Net – The First Glance What Is.Net, Why Use.Net.
tom perkins1 XML Web Services -.NET FRAMEWORK – Part 1 CHAPTER 1.1 – 1.3.
Introducing Visual Studio.NET Petar Banov. Introducing Visual Studio.NET What is.NET all about?.NET Technologies Visual Studio.NET.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
PRIOR TO WEB SERVICES THE OTHER TECHNOLOGIES ARE:.
.NET Ying Chen Junwei Chen. What is Microsoft.NET. NET is a development platform Incorporated into.NET COM+ component services ASP web development framework.
INTRODUCTION CHAPTER #1 Visual Basic.NET. VB.Net General features It is an object oriented language  In the past VB had objects but focus was not placed.
July 22, 2001Introduction to.NET1 Introduction to.NET Framework Gholamali Semsarzadeh July 2001.
Text Introduction to.NET Framework. CONFIDENTIAL Agenda .NET Training – Purpose  What is.NET?  Why.NET?  Advantages  Architecture  Components: CLR,
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
Assemblies. 2 Objectives Introduce assemblies –concept –creation –naming Discuss deployment –main.exe –dependent assemblies.
.NET Framework, CLR, MSIL, Assemblies, CTS, etc..
METADATA IN.NET Presented By Sukumar Manduva. INTRODUCTION  What is Metadata ? Metadata is a binary information which contains the complete description.
Computer Software 1.
Intro to ASP.NET CS-422 Dick Steflik. What is.NET As applications in the Enterprise become more and more netcentric and less and less standalone.NET is.
ClickOnce Deployment (One-click Deployment)
What is .NET.
Packaging and Deploying Windows Applications
Introduction to .NET framework
CE-105 Spring 2007 Engr. Faisal ur Rehman
Module 0: Introduction Chapter 2: Getting Started
Introduction to C# AKEEL AHMED.
Programming in C# CHAPTER 1
Analysis models and design models
Module 10: Implementing Managed Code in the Database
ClickOnce Deployment (One-click Deployment)
Presentation transcript:

CIS NET Applications1 Chapter 2 –.NET Component- Oriented Programming Essentials

CIS NET Applications2 Objectives Language Independence: – The CLR Packaging and Deployment: Assemblies Binary Compatibility

CIS NET Applications3 The Common Language Runtime (CLR) Common context within which all.NET components execute Manages all runtime aspects of the code –Memory management –Secure environment –Access to underlying OS services CLR code called Managed Code Visual Studio 2005 provides C#, Visual Basic, J#, and managed C++ 3 rd party vendors provide another 20 Languages including COBOL.

CIS NET Applications4 Intermediate Language and the JIT Compiler Compiling.NET managed code –First Phase: High-level code is compiled into intermediate language (IL) –Second Phase: Just in time (JIT) compiler creates native machine code.NET components are Language-Independent RAD developer – recommend Visual Basic Enterprise developer – recommend C#

CIS NET Applications5 Packaging and Deployment: Assemblies DLLs and COM Components –DLL management – installation/removal –Versioning management difficult –Security management fragile.NET Assemblies: basic packaging unit –Contains version, security, and deployment attributes –Can contain one or more physical files or modules Class Library – DLL Standalone Application – EXE Resources – icons, pictures, or localized strings –Recommend separate assemblies for class libraries, applications, and resources.

CIS NET Applications6 Assemblies and Visual Studio 2005 Lab 2: Using References –Create MyClassLibrary as described on page 25. –Add a reference to this as described on pages The reference path Namespaces Aliasing a reference Visual Studio 2005 assembly host –.vshost.exe always available for “running” app inside the IDE. –Partial trust debugging –Shorter startup time –Design-time expression evaluation

CIS NET Applications7 Client and Server Assemblies Can add references to both application and library assemblies Application assemblies (EXE) –Can be directly launched –Dictates which CLR version is used –Allows partial-trust debugging (DLL don’t) –ClickOnce publishing and deployment

CIS NET Applications8 Component Visibility Internal components (default) –Only clients inside its own assembly can access Public components –Clients from inside and outside assembly can access Protected Internal (for inheritance) –Allows access to internal clients and external subclasses only

CIS NET Applications9 Assembly Metadata Contains comprehensive standard description of what’s in an assembly Contains –Available types (name, visibility, base class, interfaces) –Namespaces –Method names and parameters Automatically generated Used by compilers or through code (reflection) Remote call marshaling

CIS NET Applications10 Assembly Manifest Describes the assembly –Logical attributes shared by all modules –Assembly name, version number, locale –Security demands –Names and hashes of all files

CIS NET Applications11 Binary Compatibility COM Binary Compatibility.NET Binary Compatibility –Uses Metadata –High-level code compiled to IL –Component/Method calls (tokens) converted to actual addresses during JIT compiling –Additionally, order of server methods doesn’t matter as long as the interface definition doesn’t change Interface Pointer Virtual table ptr Pointer to method 1 Pointer to method 2 Pointer to method 3 Code

CIS NET Applications12 Summary Language Independence: – The CLR Packaging and Deployment: Assemblies Binary Compatibility