Introduction to .NET Framework

Slides:



Advertisements
Similar presentations
.NET Framework Overview
Advertisements

History of.Net Introduced by Microsoft Earlier technology was VC++ and VB VC++ comes with so many library and VB was so easy to use and not flexible to.
.NET Framework Overview Pingping Ma Nov 16 th, 2006.
Introduction to.NET What is.NET?  A vision Web sites will be joined by Web services New smart devices will join the PC User interfaces will become more.
Programming Our First Java Program Yingcai Xiao. What to Do Set up for Java Programming Write our first Java Program with IDE Write our first Java Program.
.NET Overview. 2 Objectives Introduce.NET –overview –languages –libraries –development and execution model Examine simple C# program.
Introduction to the C# Programming Language for the VB Programmer.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
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.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Platforms and tools for Web Services and Mobile Applications Introduction to C# Bent Thomsen Aalborg University 3rd and 4th of June 2004.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
Creating and Running Your First C# Program Telerik Software Academy Telerik School Academy.
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#
1 Introduction to.NET Framework. 2.NETFramework Internet COM+ Orchestration Orchestration Windows.NET Enterprise ServersBuildingBlockServices Visual Studio.NET.
Introduction to .Net Framework
Introduction to Programming
ISYS 512 Business Application Design and Development with.Net David Chao.
1 8/29/05CS360 Windows Programming Professor Shereen Khoja.
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
Module 1: Introduction to C# Module 2: Variables and Data Types
.NET Overview. 2 Objectives Introduce.NET –overview –languages –libraries –development and execution model Examine simple C# program.
C# A 1 CSC 298 Introduction to C#. C# A 2 What to expect in this class  Background: knowledge of an object oriented language of the C++, Java, … family.
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.
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
CSC 494/594 C# and ASP.NET Programming. C# 2012 C# Object-oriented language with syntax that is similar to Java.
.NET Framework Overview
Introduction .NET Framework
Chapter 1: A First Program Using C#. Programming Computer program – A set of instructions that tells a computer what to do – Also called software Software.
Lecture 1 Programming in C# Introducing C# Writing a C# Program.
Computing with C# and the.NET Framework Chapter 1 An Introduction to Computing with C# ©2003, 2011 Art Gittleman.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Introduction to Computers and Programming.
Component-Based Software Engineering Introduction to.NET Paul Krause.
.NET Framework Danish Sami UG Lead.NetFoundry
Programming in C#. I. Introduction C# (or C-Sharp) is a programming language. C# is used to write software that runs on the.NET Framework. Although C#
Introduction to C# C# is - elegant, type-safe, object oriented language enabling to build applications that run on the.NET framework - types of applications.
Introduction to .NET Framework
Introduction to VB.Net. What is.NET? A brand of Microsoft technologies A platform for creating distributed Web applications A combination of new and updated.
1.NET FRAMEWORK CE-105 Spring 2007 Engr. Faisal ur Rehman.
AUC Technologies Projects Consulting, Development, Mentoring, and Training Company Application Foundation Presented By : Naveed Sattar Software Engineer.
Languages and IDE (Integrated Development Environment)
tom perkins1 XML Web Services -.NET FRAMEWORK – Part 1 CHAPTER 1.1 – 1.3.
ISYS 350 Business Application Development David Chao.
Module 1: Getting Started. Introduction to.NET and the.NET Framework Exploring Visual Studio.NET Creating a Windows Application Project Overview Use Visual.
PRIOR TO WEB SERVICES THE OTHER TECHNOLOGIES ARE:.
Chapters 2 & 3. .NET Software development model that allows applications created in disparate programming languages to communicate Universal data access.
Microsoft .NET A platform that can be used for building and running windows and web applications such that the software is platform and device-independent.
Common Language Runtime Introduction  The common language runtime is one of the most essential component of the.Net Framework.  It acts.
ISYS 512 Business Application Design and Development with.Net David Chao.
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.
.NET Framework, CLR, MSIL, Assemblies, CTS, etc..
D OTNET ONLINE TRAINING. DOTNET Online Training Course Content : Introduction to.Net Online Training NET FUNDAMENTALS Why Dot Net? The Dot Net initiative.
Introduction to .NET framework
Introduction to .NET Framework
Foundations of .Net Programming with C#
C# and the .NET Framework
Introduction to .NET Framework Ch2 – Deitel’s Book
Application Foundation
Module 0: Introduction Chapter 2: Getting Started
Module 1: Getting Started
Introduction to C# AKEEL AHMED.
IS 135 Business Programming
Presentation transcript:

Introduction to .NET Framework Po Feng, Tsai

How a program is composed and executed Written by you but executed by a machine (computer) For programmers C,C++,Fortran,Basic For machines Architecture dependent instruction set (in binary forms) Translation is required

How a program is composed and executed Source Codes Compiler Assembler Object Codes Linker Loader Assembly Codes Hardware Architecture

Problems for a programmer Platform dependent Windows ? Linux ? Architecture dependent X86 ? ARM? PPC? Interfacing with each others An isolated virtual framework layer

The .NET Framework To provide a convenient and united development and execution environment C#, VB.NET, C++.NET & Jscript.NET CLR (Common Language Runtime) FCL (framework class library) Languages integration CTS (Common Type System) CLS (Common Language Specification) CLR

The .NET Framework Framework class library Lower level: (Base class library) Core data type (integer, string, float, object) Fundamental constructs (collection, I/O …) Access to resources (Networking, file system…) Interface to core execution (Threading, debugging …) Upper level: SQL ADO.NET XML Web services

The .NET Framework

Compilation Source codes are compiled into MSIL (MS Intermediate Language) for the first step Metadata is used to keep the content information, such as parameters, methods, of the file

Execution CLR is the execution engine of .NET framework application Virtual machine It manages the following services Code management Memory management Conversion IL into native code Exception handling Debugging

Compilation & Execution

JIT (Just In Time) Very popular technique used in various virtual machines Machine codes are generated Fast Compiles as needed

Introduction to C# Po Feng, Tsai

Getting started Visual C# 2005 Express http://www.microsoft.com/taiwan/vstudio/express/visualcsharp/ System Requirements: Processor Minimum: 600 megahertz (MHz) Pentium processor Recommended: 1 gigahertz (GHz) Pentium processor RAM Minimum: 192 megabytes (MB) Recommended: 256 MB Hard Disk: Up to 1.3 GB of available space may be required

About C# C# is announced in July 2000 C# includes the support for structured, component-based, object-oriented programming Very easy to use Modern programming

Example 1: HelloWorld In the console window: Hello World

The Class A type defines a thing including its properties and behaviors A class is used to define a new type Blueprints

The Method Behaviors are defined by methods A method is a function owned by your class Defines what you can do or how it behaves Usually you can tell what it is for from its name WriteLine()

The Method Declare a method The program entry function Keyword: void Main() The program ends when Main() exits

The comments You can add your own comments by // /* ……… */ /// (used by Visual Studio)

Namespace Tremendous number of types of the .NET Framework Class Library Each class in C# must have a unique name Name collision Example (two engineers) Jim: Science.software.engineer Charlotte: transportation.train.engineer System.Console.WriteLine(); Keyword: using using System; using System.Console; (does not compile !)

Console object This is a console program No GUIs Monitor is managed by an Console object It has many behaviors (methods) WriteLine() Write() Console.WriteLine()

The Dot operator ( . ) You can use the dot operator to access a method (or data) of a class or object You can use the dot operator to specify the sub-namespace Please keep in mind: C# is case-sensitive

The static keyword It is used to indicate that you can invoke Main() without first creating an object of type HelloWorld This issue will be covered in later sections

Developing the HelloWorld Console mode (start  cmd) Need .NET Framework SDK csc HelloWorld Use Visual Studio .NET (Integrated Development Environment)

Using VS .NET File  New  Project Select “Console Application”

Using VS .NET

Compile & Run Compile Run Build  Build Solution Ctrl+shift+B Debug  Start Without Debugging F5 (debug) or Ctrl-F5

HelloWorld.exe Contains op-codes written in MSIL Read-only segment Inserted with standard win32 executable header Jumps to the JIT compiler JIT compiler Generating native instructions (like a normal exe file)