SlideShare a Scribd company logo
Introducation to C#
 Introduction to .NET
 Introduction to .NET IDE
 C# console application
 Differences in C# and C++
 Break
 C# Windows Application (SDI)
 C# Windows Application (MDI)
 Deitel, H., Deitel, P., et al., C#, How to Program,
Prentice-Hall, Upper Saddle River, NJ
 Foxall, J. and Haro-Chun, W., SAMS Teach
Yourself C# in 24 Hours, SAMS, Indianapolis, IN
 Turtschi, A., et al., C# .NET Web Developer’s
Guide, Syngress, electronic volume at
www.netlibrary.com
 Workshop slides and tutorial materials can be
downloaded from:
http://cs.mwsu.edu/~stringfe/CCSCWorkshop
 .NET Platform
Web-based applications can be
distributed to a variety of devices
and desktops
 C#
developed specifically for .NET
 .NET initiative
◦ Introduced by Microsoft (June 2000)
 Vision for embracing the Internet in software development
◦ Independence from specific language or platform
 Applications developed in any .NET-compatible language
 Visual Basic.NET, Visual C++.NET, C# and more
 Supports portability and interoperability
◦ Architecture capable of existing on multiple platforms
 Supports portability
 Key components of .NET
◦ Web services
 Applications used over the Internet
◦ Software reusability
 Web services provide solutions for variety of companies
 Cheaper than one-time solutions that can’t be reused
 Single applications perform all operations for a company via
various Web services
 Manage taxes, bills, investments and more
 Pre-packaged components using Visual Programming
 (buttons, text boxes, scroll bars)
 Make application development quicker and easier
 Keys to interaction
◦ XML (Extreme Markup Language) and SOAP
(Simple Object Access Protocol)
 “Glue” that combines various Web services to form
applications
 XML gives meaning to data
 SOAP allows communication to occur easily
 Other concepts
◦ Universal data access
 Eliminates need to synchronize files
 Synchronization - Updating multiple copies of
same file to the most recent
 Data resides at one central location
 Accessible by anyone with connection and
proper authorization
 Data formatted appropriately for display on
various devices
 Same document seen on PC, PDA, cell phone
and other devices
 .NET Framework
◦ Heart of .NET strategy
 Manages and executes applications and Web services
 Provides security, memory management and other programming
capabilities
◦ Includes Framework Class Library (FCL)
 Pre-packaged classes ready for reuse
 Used by any .NET language
◦ Details contained in Common Language Specification (CLS)
 Submitted to European Computer Manufacturers Association to
make the framework easily converted to other platforms
◦ Executes programs by Common Language Runtime (CLR)
 Central part of framework
◦ Executes programs
 Compilation process
◦ Two compilations take place
 Programs compiled to Microsoft Intermediate Language
(MSIL)
 Defines instructions for CLR
 MSIL code translated into machine code
 Platform-specific machine language
 Why two compilations?
◦ Platform independence
 .NET Framework can be installed on different platforms
 Execute .NET programs without any modifications to code
 .NET compliant program translated into platform independent MSIL
◦ Language independence
 MSIL form of .NET programs not tied to particular language
 Programs may consist of several .NET-compliant languages
 Old and new components can be integrated
 MSIL translated into platform-specific code
 Other advantages of CLR
◦ Execution-management features
 Manages memory, security and other features
 Relieves programmer of many responsibilities
 More concentration on program logic
 .NET platform
◦ Web-based applications can be distributed to variety of
devices and desktops
 C#
◦ Developed specifically for .NET
◦ Enable programmers to migrate from C/C++ and Java easily
◦ Event-driven, fully OO, visual programming language
◦ Has IDE
◦ Process of rapidly creating an application using an IDE is
called Rapid Application Development (RAD)
 Language interoperability
◦ Can interact with software components written in different
languages or with old packaged software written in C/C++
 Can interact via internet, using industry standards
(SOAP and XML)
◦ Simple Object Access Protocol - Helps to share program “chunks”
over the internet
 Accommodates a new style of programming in which
applications are created from building blocks available
over internet (reusability)
 Console applications
◦ No visual components
(buttons, text boxes, etc.)
◦ Only text output
◦ Two types
 MS-DOS prompt -Used in Windows 95/98/ME
 Command prompt -Used in Windows 2000/NT/XP
 Group related C# features into categories
 Contain code that can be reused
 .NET framework library (FCL) contains many
namespaces
 Must be referenced in order to be used
 Example: Console feature is in
namespace System
 Building blocks of C# programs
 Every program is a class!
 The Main method
◦ Each console or windows application must have
exactly one
◦ With C# Console applications
 Text output only
Console.Write(“... {0}”, Sum);
Console.WriteLine(“…”);
 Primitive data types built into C#
(string, int, double, char, long …15 types)
 Console.ReadLine( )
◦ Used to get a value from the user input
 Int32.Parse( )
◦ Converts a string argument to an integer
◦ Allows math to be performed once the string is
converted
 number2 = Int32.Parse( Console.ReadLine( ) );

More Related Content

PPT
Basic C# and .net
PPTX
02 intro to programming in .net (part 2)
PPTX
01 intro to programming in .net
PDF
1 get started with c#
PPTX
PPT
.Net framework
PPTX
.net CLR
PPT
.Net framework
Basic C# and .net
02 intro to programming in .net (part 2)
01 intro to programming in .net
1 get started with c#
.Net framework
.net CLR
.Net framework

What's hot (17)

PPT
Introduction to .NET Framework
PPTX
6.origins genesis of .net technology
DOCX
New microsoft office word document
PPTX
Dotnet Frameworks Version History
PPT
Visual studio 2015 and .net core 5 – get ready to rumble
PPTX
.Net framework
PPT
Dotnet framework
PPT
c#.Net Windows application
PPTX
Session i
PPT
Introduction to VB.net
PPTX
A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0
PPTX
Overview of .Net Framework 4.5
PPT
.Net overview|Introduction Of .net
PPT
SynapseIndia dotnet development framework
PPTX
Component of .net
PPTX
Common language runtime clr
PPTX
Evolution of .net frame work
Introduction to .NET Framework
6.origins genesis of .net technology
New microsoft office word document
Dotnet Frameworks Version History
Visual studio 2015 and .net core 5 – get ready to rumble
.Net framework
Dotnet framework
c#.Net Windows application
Session i
Introduction to VB.net
A Sneak Peek At Visual Studio 2010 And .Net Framework 4.0
Overview of .Net Framework 4.5
.Net overview|Introduction Of .net
SynapseIndia dotnet development framework
Component of .net
Common language runtime clr
Evolution of .net frame work
Ad

Viewers also liked (20)

PPTX
Chapter i c#(console application and programming)
PPT
Programming in c#
PPTX
Chapter ii c#(building a user interface)
PPT
ASP.NET Session 3
PPTX
Vara Framework
PPS
04 gui 05
DOC
Release 4106
PPTX
Webquest
PPTX
Docker for Web Developers: A Sneak Peek
PPTX
Redacción de textos
PDF
Oral bac anglais problématique lieux formes pouvoir
PPT
Chapter 14
PPTX
Functions, List and String methods
PDF
2. C# Guide - To Print
PPTX
Sdi & mdi
PPTX
SQLite: Light, Open Source Relational Database Management System
PDF
Writing Fast Code (JP) - PyCon JP 2015
PPTX
SQLite - Overview
PPTX
android sqlite
PPTX
Ppt on global recruitment method
Chapter i c#(console application and programming)
Programming in c#
Chapter ii c#(building a user interface)
ASP.NET Session 3
Vara Framework
04 gui 05
Release 4106
Webquest
Docker for Web Developers: A Sneak Peek
Redacción de textos
Oral bac anglais problématique lieux formes pouvoir
Chapter 14
Functions, List and String methods
2. C# Guide - To Print
Sdi & mdi
SQLite: Light, Open Source Relational Database Management System
Writing Fast Code (JP) - PyCon JP 2015
SQLite - Overview
android sqlite
Ppt on global recruitment method
Ad

Similar to Introducation to C# (20)

PPTX
1-.NET Introduction.pptx
PPTX
Visual Basic User Interface-III
PPT
NETOverview1.ppt c# using asp.net activeX data object and XNL
PPT
.Net framework
PPT
.Net Introduction
PPT
.Net overview
PPT
Best DotNet Training in Delhi
PPT
Synapse india fundamentals of dotnet development
PPT
NETOverview1.ppt
PPTX
NETOverview1ppt.pptx
PPT
Modified.net overview
PPT
Visula C# Programming Lecture 1
PPS
Asp.net new
PPTX
ASP.Net Technologies Part-1
PPTX
Presentation1
PPTX
Introduction to .NET with C# @ university of wayamba
PPTX
Microsoft dot net framework
PPT
Synapse india reviews sharing asp.net
1-.NET Introduction.pptx
Visual Basic User Interface-III
NETOverview1.ppt c# using asp.net activeX data object and XNL
.Net framework
.Net Introduction
.Net overview
Best DotNet Training in Delhi
Synapse india fundamentals of dotnet development
NETOverview1.ppt
NETOverview1ppt.pptx
Modified.net overview
Visula C# Programming Lecture 1
Asp.net new
ASP.Net Technologies Part-1
Presentation1
Introduction to .NET with C# @ university of wayamba
Microsoft dot net framework
Synapse india reviews sharing asp.net

Recently uploaded (20)

PDF
KodekX | Application Modernization Development
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Machine learning based COVID-19 study performance prediction
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Encapsulation theory and applications.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Approach and Philosophy of On baking technology
PDF
Empathic Computing: Creating Shared Understanding
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
KodekX | Application Modernization Development
sap open course for s4hana steps from ECC to s4
Chapter 3 Spatial Domain Image Processing.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
MIND Revenue Release Quarter 2 2025 Press Release
Machine learning based COVID-19 study performance prediction
Mobile App Security Testing_ A Comprehensive Guide.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
The AUB Centre for AI in Media Proposal.docx
Advanced methodologies resolving dimensionality complications for autism neur...
Encapsulation theory and applications.pdf
Spectral efficient network and resource selection model in 5G networks
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Approach and Philosophy of On baking technology
Empathic Computing: Creating Shared Understanding
NewMind AI Weekly Chronicles - August'25 Week I
Dropbox Q2 2025 Financial Results & Investor Presentation

Introducation to C#

  • 2.  Introduction to .NET  Introduction to .NET IDE  C# console application  Differences in C# and C++  Break  C# Windows Application (SDI)  C# Windows Application (MDI)
  • 3.  Deitel, H., Deitel, P., et al., C#, How to Program, Prentice-Hall, Upper Saddle River, NJ  Foxall, J. and Haro-Chun, W., SAMS Teach Yourself C# in 24 Hours, SAMS, Indianapolis, IN  Turtschi, A., et al., C# .NET Web Developer’s Guide, Syngress, electronic volume at www.netlibrary.com  Workshop slides and tutorial materials can be downloaded from: http://cs.mwsu.edu/~stringfe/CCSCWorkshop
  • 4.  .NET Platform Web-based applications can be distributed to a variety of devices and desktops  C# developed specifically for .NET
  • 5.  .NET initiative ◦ Introduced by Microsoft (June 2000)  Vision for embracing the Internet in software development ◦ Independence from specific language or platform  Applications developed in any .NET-compatible language  Visual Basic.NET, Visual C++.NET, C# and more  Supports portability and interoperability ◦ Architecture capable of existing on multiple platforms  Supports portability
  • 6.  Key components of .NET ◦ Web services  Applications used over the Internet ◦ Software reusability  Web services provide solutions for variety of companies  Cheaper than one-time solutions that can’t be reused  Single applications perform all operations for a company via various Web services  Manage taxes, bills, investments and more  Pre-packaged components using Visual Programming  (buttons, text boxes, scroll bars)  Make application development quicker and easier
  • 7.  Keys to interaction ◦ XML (Extreme Markup Language) and SOAP (Simple Object Access Protocol)  “Glue” that combines various Web services to form applications  XML gives meaning to data  SOAP allows communication to occur easily
  • 8.  Other concepts ◦ Universal data access  Eliminates need to synchronize files  Synchronization - Updating multiple copies of same file to the most recent  Data resides at one central location  Accessible by anyone with connection and proper authorization  Data formatted appropriately for display on various devices  Same document seen on PC, PDA, cell phone and other devices
  • 9.  .NET Framework ◦ Heart of .NET strategy  Manages and executes applications and Web services  Provides security, memory management and other programming capabilities ◦ Includes Framework Class Library (FCL)  Pre-packaged classes ready for reuse  Used by any .NET language ◦ Details contained in Common Language Specification (CLS)  Submitted to European Computer Manufacturers Association to make the framework easily converted to other platforms ◦ Executes programs by Common Language Runtime (CLR)
  • 10.  Central part of framework ◦ Executes programs  Compilation process ◦ Two compilations take place  Programs compiled to Microsoft Intermediate Language (MSIL)  Defines instructions for CLR  MSIL code translated into machine code  Platform-specific machine language
  • 11.  Why two compilations? ◦ Platform independence  .NET Framework can be installed on different platforms  Execute .NET programs without any modifications to code  .NET compliant program translated into platform independent MSIL ◦ Language independence  MSIL form of .NET programs not tied to particular language  Programs may consist of several .NET-compliant languages  Old and new components can be integrated  MSIL translated into platform-specific code  Other advantages of CLR ◦ Execution-management features  Manages memory, security and other features  Relieves programmer of many responsibilities  More concentration on program logic
  • 12.  .NET platform ◦ Web-based applications can be distributed to variety of devices and desktops  C# ◦ Developed specifically for .NET ◦ Enable programmers to migrate from C/C++ and Java easily ◦ Event-driven, fully OO, visual programming language ◦ Has IDE ◦ Process of rapidly creating an application using an IDE is called Rapid Application Development (RAD)
  • 13.  Language interoperability ◦ Can interact with software components written in different languages or with old packaged software written in C/C++  Can interact via internet, using industry standards (SOAP and XML) ◦ Simple Object Access Protocol - Helps to share program “chunks” over the internet  Accommodates a new style of programming in which applications are created from building blocks available over internet (reusability)
  • 14.  Console applications ◦ No visual components (buttons, text boxes, etc.) ◦ Only text output ◦ Two types  MS-DOS prompt -Used in Windows 95/98/ME  Command prompt -Used in Windows 2000/NT/XP
  • 15.  Group related C# features into categories  Contain code that can be reused  .NET framework library (FCL) contains many namespaces  Must be referenced in order to be used  Example: Console feature is in namespace System
  • 16.  Building blocks of C# programs  Every program is a class!  The Main method ◦ Each console or windows application must have exactly one
  • 17. ◦ With C# Console applications  Text output only Console.Write(“... {0}”, Sum); Console.WriteLine(“…”);
  • 18.  Primitive data types built into C# (string, int, double, char, long …15 types)  Console.ReadLine( ) ◦ Used to get a value from the user input  Int32.Parse( ) ◦ Converts a string argument to an integer ◦ Allows math to be performed once the string is converted  number2 = Int32.Parse( Console.ReadLine( ) );