Introduction C#
C# Programming I Introduction
Session 1
2
Prerequisites
• COURSES
– Introduction to Programming
– Foundations of the .NET Framework
• Or Equivalent Experience
– Experience with another programming
language
– Grasp of the .NET Framework, its architecture
and capabilities
© 2001 – 2005 XPDreamTeam LLC
Reference Materials
• Course Web Site
–http://www.xpdreamteam.com/
– Lab & homework instructions posted here
• MSDN Links
– References to MSDN online
• Articles & Code Samples
– New additions are made regularly
© 2001 – 2005 XPDreamTeam LLC
Requirements
• A fully operational Visual Studio environment
for homework including:
– Windows XP, Vista, Windows 2003 Server or
Windows 2008 Server
– Visual Studio 2008Professional or Higher
• Release plus latest .NET Framework Service Packs
• MSDN Library (local or online)
• Visual C# 2008 Express Edition is acceptable for C# I
http://www.microsoft.com/express/vcsharp/
– Microsoft DreamSpark Program
• http://www.dreamspark.com/
©2009 Bruce Schurter
5
Reference Materials
• Slides, Lectures & Demonstrations
– Slides will include additional details
–Lecture and demonstration will add clarity
• TRY NOT TO MISS CLASSES!!!
– Suggested reading may not help as much as in
class discussions!
© 2001 – 2005 XPDreamTeam LLC
How to contact me?
• Email : CsharpOne@xpdreamteam.com
– Make sure to use this address only
• Online
– MSN Messenger:
• pierre@xpdreamteam.com
How about you ?
• Introduce yourself
• Your background
–Programming language, background?
• Your expectations with this class
Session 1
•
•
•
•
•
Evolution of the C# Language
.NET Platform Overview
Simple C# Console Application
Data Types and Variables
Operators, Statements & Expressions
© 2001 – 2005 XPDreamTeam LLC
Increasing Level of Abstraction
C# History
•
•
•
•
•
•
•
•
•
•
12/1998 – COOL project started02/2000 – Named changed to C#
07/2000 – First public preview release
02/2002 – VS.NET 2002, C# 1.0 released
05/2003 – VS.NET 2003, C# 1.1 released
06/2004 – Beta 1 of VS 2005, C# 2.0
04/2005 – Beta 2 of VS 2005, C# 2.0
09/2005 – VS 2005, C# 2.0 release
12/2007 – VS 2008, C# 3.0 release
11/2009 – VS 2010, C# 4.0 release *
The Evolution of C#
•
C/Win32
– Ugly syntax, notobject-oriented
– Manual Memory Management
•
C++/MFC
– Object-oriented layer for C
•
Visual Basic (through Version 6)
– Object “aware”, not object-oriented
– No multi-threading
•
Java
– Object-oriented
– Platform independence
– Cross-language integration limited
•
COM
– Reusable binary code
– Location transparency
– Deployment issues
– DLL Hell
© 2001 – 2005 XPDreamTeam LLCThe Evolution of C#
• Windows Distributed Internet Architecture (DNA)
– Web development and deployment
– Too many technologies required (ASP, HTML, XML, JavaScript,
COM+)
• NET
–
–
–
–
–
–
Interoperability
Language Integration
Common engine for all languages
Less complex base class library
COM "issues" removed
Simplified deployment
• C#
– Leverages the power of .NETand OO development with a
"simpler" C-style syntax
© 2001 – 2005 XPDreamTeam LLC
Benefits of C#
• C# preserves C++ heritage
– Structured exception handling
– Similar statements, expressions & operators
• Improvements to C++
–
–
–
–
Garbage collection
Type safety
Versioning
Events
© 2001 – 2005 XPDreamTeam LLC
Benefits of C#
• Additional Language Features
–
–
–
–COM interoperability
Built-in code trust security
Metadata extensibility
XML support
• C# provides natural constructs to access .NET
framework functionality
• Brings a truly component-oriented language to
the C/C++ family
– Everything is an object
© 2001 – 2005 XPDreamTeam LLC
Session 1
•
•
•
•
•
Evolution of the C# Language
.NET Platform Overview
Simple C# Console...
Regístrate para leer el documento completo.