Foundations of .Net Programming with C#

Slides:



Advertisements
Similar presentations
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.
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.
Overview of the.NET Framework. What is the.NET Framework A new computing platform designed to simplify application development A consistent object-oriented.
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.
Introduction to the C# Programming Language for the VB Programmer.
Data Structure and Algorithm 1 Yingcai Xiao. You Me The Course (
Programming A Historic Perspective on Code Reuse Yingcai Xiao.
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.
Tahir Nawaz Visual Programming C# Week 2. What is C#? C# (pronounced "C sharp") is an object- oriented language that is used to build applications for.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
Computer science Languages, etc.. Overview For web-applications (HTML, JS) – Designing languages (HMTL, CSS) – Server Languages (PHP, ASP) – Extensions.
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.
ISYS 350 Business Application Development
CSCI 3327 Visual Basic Chapter 1: Introduction to Visual Basic
Introduction to .Net Framework
ISYS 512 Business Application Design and Development with.Net David Chao.
ASP.NET The.NET Framework. The.NET Framework is Microsoft’s distributed run-time environment for creating, deploying, and using applications over the.
CSC300 Visual Programming Dr. Craig Reinhart. Objectives Teach the basics of C++ –You won’t be an expert but hopefully a very good novice –GUI development.
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.
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
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.
Introduction to .NET Framework
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
CSC 494/594 C# and ASP.NET Programming. C# 2012 C# Object-oriented language with syntax that is similar to Java.
Computing with C# and the.NET Framework Chapter 1 An Introduction to Computing with C# ©2003, 2011 Art Gittleman.
ISYS 573 Special Topic – VB.Net David Chao. The History of VB Early 1960s:BASIC-Beginner’s All-Purpose Symbolic Instruction Code –Teaching –Simple syntax,
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.
ISYS 350 Business Application Development David Chao.
1 Hammad Khan. Agenda.NET Framework Introduction to Visual C#
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
.NET Ying Chen Junwei Chen. What is Microsoft.NET. NET is a development platform Incorporated into.NET COM+ component services ASP web development framework.
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.
Wel come To Seminar On C#.
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.
Introduction to the Microsoft.NET Framework Chris Wastchak Student Ambassador to Microsoft.
Computer System Structures
Introduction to Visual Basic. NET,. NET Framework and Visual Studio
Introducing the Microsoft® .NET Framework
Introduction to .NET framework
Introduction to .NET Framework
Introduction to Visual Basic 2008 Programming
Frank McCown TechLunch Old Dominion University March 28, 2007
C# and the .NET Framework
Introduction to .NET Framework Ch2 – Deitel’s Book
CE-105 Spring 2007 Engr. Faisal ur Rehman
Application Foundation
Chapter 1 IDE and Tools for Developing CLR-based Programs
Introduction to C# AKEEL AHMED.
CIS16 Application Development – Programming with Visual Basic
Introduction to .NET By : Mr. V. D. Panchal Content :
Lập trình Visual Studio .NET
Introducing the .NET Framework
.Net Framework Details Imran Rashid CTO at ManiWeber Technologies.
Visual Programming Lecture 1.
Frank McCown TechLunch Old Dominion University March 28, 2007
DOT NET ARCHITECTURE (OR) DOT NET FRAME WORK ARCHITECTURE
IS 135 Business Programming
C# and ASP.NET Programming
Presentation transcript:

Foundations of .Net Programming with C# Haiming Chen Department of Computer Science Ningbo University Fall Semester , 2016-2017 Course 106F22A01

Operating System (MS Windows) .Net Framework Visual Studio .NET Common Language Runtime (CLR) Base Class Library: IO, Drawing, Threading Data and XML XML Web services Windows Forms Web Forms Common Language Specification (CLS) VB C++ C# … JScript Operating System (MS Windows) .Net Framework Class Library (FCL) Just In Time compilation (JIT)

CLS Define common rules that should be obeyed by all the .Net programming languages (i.e. C#, VB) Develop applications that can inter-operate with applications with different programming languages CTS (Common Type System) Standard data type Rule sets

Program w/o the .Net Framework Results C++ VB Compiler Executable code R U N T I M E

Program with the .Net Framework IL_0000: nop IL_0001: call IL_0006: nop IL_0007: ldc.i4.0 IL_0008: call IL_000d: nop IL_000e: ldnull IL_000f: ldftn IL_0015: newobj IL_001a: call IL_001f: nop IL_0020: newobj IL_0025: call IL_002a: nop IL_002b: newobj IL_0030: throw Results C++ VB Compiler Microsoft Intermediate Language (MSIL) + Meta Data CLR

Program with the .Net Framework 1st Compiling .NET source code CLR Native code MSIL Result Compiler Support inter-operation between programs written with different languages Need CLR to translate MSIL to codes running on a specific CPU (e.g. Intel, AMD, Qualcomm) IL is similar with the JAVA byte code. irrelevant to instruction sets (e.g. X86, ARM, MIPS) of CPU

Program with the .Net Framework 2nd Compiling CLR .NET source code Native code MSIL Result Compiler Memory management Together with CLS, to realize cross-language integration Ease design of components and applications, and support cross-language interaction JIT compiler:compile once, run on any number of operating systems with the .Net framework

C# language Object oriented programming language, fully utilizing the advantage of .Net Framework, for developing classic windows desktop software, web service applications Different from C/C++, which is mainly used in developing system software interacting with hardware frequently C# can also make use of functions provided by the operating system C# combines advantages of VB in fast developing software and C/C++ in power of operating low layer of system

Namespace Like package in JAVA .Net Programming with C# Namespace Like package in JAVA To organize related classes into a container To avoid conflict of naming classes Operator to use name space: using namespace a1 { class A … } namespace a2 { class A … } using a1; using a2; a1.A a2.A

Common used namespaces .Net Programming with C# Common used namespaces Namespace Description System.Drawing Process graphs, draw figures and print System.Data Operate data in database (ADO.NET) System.IO Operate file and data streaming System.Windows System.Reflection System.Threading System.Collections

Hello World Project->Properties Build->Debug/Release

Quiz 1 Please describe the procedure to run a C# source program What’s the use of CLS and CLR in .Net Framework? How does C# organize classes? How to create a project and run it in VS?