C Sharp Web & Internet Programming Group Diana, Aren, Jeff, & Adam, Farrin 5/5/20081CS 311.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 12 Introduction to ASP.NET.
Advertisements

You can do more than what you think ……… If you believe you can.
CHARLES UNIVERSITY IN PRAGUE faculty of mathematics and physics C# Language &.NET Platform 12 th -13 th Lecture Pavel Ježek.
Core Java Lecture 4-5. What We Will Cover Today What Are Methods Scope and Life Time of Variables Command Line Arguments Use of static keyword in Java.
C# Language Report By Trevor Adams. Language History Developed by Microsoft Developed by Microsoft Principal Software Architect Principal Software Architect.
CS 4800 By Brandon Andrews.  Specifications  Goals  Applications  Design Steps  Testing.
Principles of Object-Oriented Software Development The language Java.
Trey Mack James Moore Osa Osar-Emokpae
History  We first begin with Java which was released in 1995 by Sun Microsystems  Initially Java was 100% interpreted at runtime and was very slow 
CS-341 Dick Steflik Introduction. C++ General purpose programming language A superset of C (except for minor details) provides new flexible ways for defining.
C#: Project Cool Arthur Ketchel II Keith Francisco Chris McInnis.
C#/.NET Jacob Lewallen. C# vs.NET.NET is a platform. Many languages compile to.NET: –VB.NET –Python.NET –Managed C++ –C#
U NIVERSITY OF M ASSACHUSETTS A MHERST Department of Computer Science Computer Systems Principles C/C++ Emery Berger and Mark Corner University of Massachusetts.
Lecture 1: Overview of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++ Designed.
Peter Juszczyk CS 492/493 - ISGS. // Is this C# or Java? class TestApp { static void Main() { int counter = 0; counter++; } } The answer is C# - In C#
Platforms and tools for Web Services and Mobile Applications Introduction to C# Bent Thomsen Aalborg University 3rd and 4th of June 2004.
From C++ to C#. Web programming The course is on web programming using ASP.Net and C# The course is on web programming using ASP.Net and C# ASP.Net is.
Differences between C# and C++ Dr. Catherine Stringfellow Dr. Stewart Carpenter.
C# Tutorial From C++ to C#. Some useful links Msdn C# us/library/kx37x362.aspxhttp://msdn.microsoft.com/en- us/library/kx37x362.aspx.
Programming in Java; Instructor:Moorthy Introduction, Objects, Classes, Libraries1 Programming in Java Introduction.
Java and C++, The Difference An introduction Unit - 00.
MESDA Conference 2002 MESDA Annual Conference 2002 Software Development Track Java vs. C#
Distributed Systems (236351) Tutorial 1 - Getting Started with Visual Studio C#.NET.
Object Oriented Programming: Java Edition By: Samuel Robinson.
Algorithm Programming Bar-Ilan University תשס"ח by Moshe Fresko.
Programming Language C++ Xulong Peng CSC415 Programming Languages.
Introduction to C# C# is - elegant, type-safe, object oriented language enabling to build applications that run on the.NET framework - types of applications.
C#C# Introduction CS3260 Dennis A. Fairclough Version 1.0 Introduction CS3260 Dennis A. Fairclough Version 1.0.
CS 11 java track: lecture 1 Administrivia need a CS cluster account cgi-bin/sysadmin/account_request.cgi need to know UNIX
Session 08 Module 14: Generics and Iterator Module 15: Anonymous & partial class & Nullable type.
Applied Computing Technology Laboratory QuickStart C# Learning to Program in C# Amy Roberge & John Linehan November 7, 2005.
Hoang Anh Viet Hà Nội University of Technology Chapter 1. Introduction to C# Programming.
Java for C++ Programmers Clint Jeffery University of Idaho
C# EMILEE KING. HISTORY OF C# In the late 1990’s Microsoft recognized the need to be able to develop applications that can run on multiple operating system.
C++ Memory Overview 4 major memory segments Key differences from Java
Copyright © Curt Hill Structured Data What this course is about.
C# 2.0 and Future Directions Anders Hejlsberg Technical Fellow Microsoft Corporation.
Chapter 7 Pointers: Java does not have pointers. Used for dynamic memory allocation.
Java Basics Opening Discussion zWhat did we talk about last class? zWhat are the basic constructs in the programming languages you are familiar.
CMPSC 16 Problem Solving with Computers I Spring 2014 Instructor: Lucas Bang Lecture 16: Introduction to C++
C++ The reason why it is still in use. Table of Contents Disadvantages Disadvantages Advantages Advantages Compare with object-oriented programming language.
OOP in C++ CS 124. Program Structure C++ Program: collection of files Source (.cpp) files be compiled separately to be linked into an executable Files.
Introduction to C# 2.0 An Advanced Look Adam Calderon Principal Engineer - Interknowlogy Microsoft MVP – C#
Developed at Sun Microsystems in 1991 James Gosling, initially named “OAK” Formally announced java in 1995 Object oriented and cant write procedural.
C LANGUAGE Characteristics of C · Small size
Duke CPS From C++ to Java l Java history: Oak, toaster-ovens, internet language, panacea l What it is ä O-O language, not a hybrid (cf. C++)
Session 1 C# Basics.
Introduction to C# By: Abir Ghattas Michel Barakat.
A comparison of C-Sharp and Java Zunaid Jogee Supervisor: T. Stakemire.
Announcements Final Exam: TBD. Static Variables and Methods static means “in class” methods and variables static variable: one per class (not one per.
Java & C++ Comparisons How important are classes and objects?? What mechanisms exist for input and output?? Are references and pointers the same thing??
Introduction to C# Anders Hejlsberg Distinguished Engineer Developer Division Microsoft Corporation.
Enum,Structure and Nullable Types Ashima Wadhwa. Enumerations, Enumerations, or enums, are used to group named constants similar to how they are used.
A Introduction to Computing II Lecture 1: Java Review Fall Session 2000.
1 Lecture # 2. * Introducing Programming with an Example * Identifiers, Variables, and Constants * Primitive Data Types * Byte, short, int, long, float,
Memory Management in Java Mr. Gerb Computer Science 4.
Java and C# - Some Commonalities Compile into machine-independent, language- independent code which runs in a managed execution environment Garbage Collection.
Component Programming Islam Qudah
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
INTRODUCTION BEGINNING C#. C# AND THE.NET RUNTIME AND LIBRARIES The C# compiler compiles and convert C# programs. NET Common Language Runtime (CLR) executes.
CSE Delivering Software Components (SC) Thanks to Islam Qudah (PhD Student and Systems Support Analyst)
C# Diline Giriş.
Intro to Java L. Grewe.
Basic Introduction to C#
CS360 Windows Programming
Methods and Parameters
Introduction to C# AKEEL AHMED.
Programming in C# CHAPTER 1
From C++ to Java Java history: Oak, toaster-ovens, internet language, panacea What it is O-O language, not a hybrid (cf. C++) compiled to byte-code, executed.
Paul Stubbs MCSD, MCSE 4.0, MCP+I, MCT, MCAD .Net
Presentation transcript:

C Sharp Web & Internet Programming Group Diana, Aren, Jeff, & Adam, Farrin 5/5/20081CS 311

 Anders Hejlsberg formed a team January 1999  Publicly announced July 2000  Third Version in June /5/20082CS 311

 Visual J++  Turbo Pascal  Based on Java  Delphi  Smalltalk  Based on C++  Visual Basic 5/5/20083CS 311

 Simple  General-purpose OOP  Ground up design  Components  High Level  Source code Portable  Compiled 5/5/20084CS 311

 Preprocessor directives  No Actual preprocessor  Symbols but no macros 5/5/20085CS 311

 Int  Long  Char  Float  Bool  Double  Byte  Word 5/5/20086CS 311

Type safety  Implicit conversions  Enumeration members are placed in their own namespace.  Type Reflection 5/5/20087CS 311

 C# supports a strict Boolean type, Bool  Conditionals  No 1=True  Easy conversion  If(a=b) mistake 5/5/20088CS 311

 New features  Can be cross-language  C++ templates can not  Type Constraints  No non-typed parameters 5/5/20089CS 311

 global variables  Methods and members  shadow variables  Similar to C++ and Java  Int A=1;  string B = Boo; 5/5/200810CS 311

 Similar to C++  If( Bool){}  While(Bool){} 5/5/200811CS 311  No Global functions  All method and member functions must be declared within classes

 C# pointers  Managed memory  Garbage collected 5/5/200812CS 311

 Similar to C++  class example_class { { // implementation } }  All methods and members  Multiple Inheritance 5/5/200813CS 311

5/5/200814CS 311  Allows class implementation across more than one source file.  file1.cs:  public partial class MyClass { public MyClass() { // implementation } }  file2.cs:  public partial class MyClass { public void SomeMethod() { // implementation } }

 Light weight classes  Allocated on stack 5/5/200815CS 311

 A dynamic linking library(s)  Shared Libraries 5/5/200816CS 311

 // File: Add.cs namespace UtilityMethods { public class AddClass { public static long Add(long i, long j) { return (i + j); } } }  namespace UtilityMethods { public class MultiplyClass { public static long Multiply(long x, long y) { return (x * y); } } } 5/5/200817CS 311

 // File: TestCode.cs using UtilityMethods; class TestCode { static void Main(string[] args) { System.Console.WriteLine ("Calling methods from MathLibrary.DLL:");  if (args.Length != 2) { System.Console.WriteLine("Usage: TestCode "); return; } long num1 = long.Parse(args[0]);  } } 5/5/200818CS 311

 New  int foo = 42; // Value type... object bar = foo; // foo is boxed to bar.  int foo = 42; // Value type. object bar = foo; // foo is boxed to bar. int foo2 = (int)bar; // Unboxed back to value type. 5/5/200819CS 311

 August 2000 Specs submitted + CLI  ISO Standard 2003  June 2005 third edition Approved 5/5/200820CS 311

 using System; // A "Hello World!" program in C# namespace Hello World { class Hello { static void Main() { System.Console.WriteLine("Hello World!"); } } } 5/5/200821CS 311

 //  /*  */  XML documentation 5/5/200822CS 311

.NET Only available on Windows  Greater resources required  Nonstandard classes 5/5/200823CS 311

   us/library/67ef8sbd(VS.80).aspx us/library/67ef8sbd(VS.80).aspx  us/vcsharp/aa aspx us/vcsharp/aa aspx  eStandards/c042926_ISO_IEC_23270_2006(E).z ip eStandards/c042926_ISO_IEC_23270_2006(E).z ip 5/5/200824CS 311

 New  file1.cs:  public partial class MyClass { public MyClass() { // implementation } }  file2.cs:  public partial class MyClass { public void SomeMethod() { // implementation } } 5/5/200825CS 311

 No Global functions  All method and member functions must be declared within classes 5/5/200826CS 311

 // Method that takes an iterable input (possibly an array) and returns all even numbers.  public static IEnumerable GetEven(IEnumerable numbers)  { foreach (int i in numbers) { if (i % 2 == 0) yield return i; } } 5/5/200827CS 311