SlideShare a Scribd company logo
@ 2010 Tata McGraw-Hill Education
1
Education
Introducing C#Introducing C#
C #’ (pronounced as ‘C sharp’) is a new computer-programming language
developed by Microsoft Corporation, USA. C# is a fully object-oriented language
like Java and is the first component –oriented language. It has been designed t
support the key features of .NET Framework, the new development platform of
Microsoft for building component-based software solutions. It is a simple, efficient,
productive and type-safe language derived from the popular C and C++ languages.
Although it belongs to the family of C / C++, it is a purely objected-oriented,
modern language suitable for developing Web based applications
@ 2010 Tata McGraw-Hill Education
2
Education
 It is a brand new language derived from the C / C++ family
 It simplifies and modernizes C++
 It is the only component-oriented language available today
 It is the only language designed for the .NET Framework
 It is a concise, lean and modern language
 It combines the best features of many commonly used languages: the productivity of
Visual
Basic, the power of C++ and the elegance of Java
 It is intrinsically object-oriented and web-enabled
 It has a lean and consistent syntax
 It embodies today’s concern for simplicity, productivity and robustness
 It will become the language of choice for .NET programming
 Major parts of .NET Framework are actually coded in C#
C# is designed for building robust, reliable and durable components to handle real-
world applications.
Major highlights of C# are:
@ 2010 Tata McGraw-Hill Education
3
Education
WHY C#?
A large number of computer languages, starting from FORTRAN developed in
1957 to the object-oriented language Java introduced in 1995, are being used for
various applications. The choice of language depends upon many factors such as
hardware environment, business environment, user requirements and so on. The
primary motivation while developing each of these languages has been the concern
that it be able to handle the increasing complexity of programs that are robust, durable
and maintainable. The history of major languages developed during the last three
decades is given in Fig. 1.1
@ 2010 Tata McGraw-Hill Education
4
Education
@ 2010 Tata McGraw-Hill Education
5
Education
C and C++ have been the two most popular and most widely used languages in
the software industry for the past two decades. However, these languages suffer
from a number of shortcomings in meeting the emerging World Wide Web
requirements and standards. Of concern are the following:
The high complexity of the language
Their long cycle-time
They are not truly object-oriented
They are not suitable for working with
new web technologies
They have poor type-safety
They are prone to costly programming errors
They do not support versioning
They are prone to memory leakages
Their low productivity
Their poor interoperability with the
existing systems
They are weak in consistency
Their poor support for component programming
@ 2010 Tata McGraw-Hill Education
6
Education
Java, a language derived from C / C++ family, however, is truly object-oriented and has
been widely used for web applications for the past five years. Unfortunately, Java has
not retained some powerful C++ features such as operator overloading. It also lacks
inter-operability with code developed in other languages.
Microsoft wanted an environment that is completely in tune with current and
emerging Web programming practices and one that easily integrates with existing
systems. Microsoft therefore decided to design a new language starting with a clean
slate. The result is C#, a simple and modern language that directly addresses the needs
of component-based software development.
@ 2010 Tata McGraw-Hill Education
7
Education
Microsoft Chairman Bill Gates, the architect of many innovative and path-breaking
software products during the past two decades, wanted to develop a software platform
which enable users to get information anytime and anywhere, using a natural
interface.
Although the research and development work of .NET platform began in the mid-
90s, only during the Microsoft Professional Developers Conference in September
2000, was .NET officially announced to the developer community. At the same
conference, Microsoft introduced C# as a de facto language of the .NET platform. In
fact, they had already used C# to code key modules of the .NET platform. C# has
been particularly designed to build software components for .NET and it supports
key features of .NET natively. They are fairly tightly tied together. In fact, C#
compiler is embedded into .NET as shown in Fig. 1.2.
@ 2010 Tata McGraw-Hill Education
8
Education
Like Java, C# is a descendant of C++ which in turn is a descendant of C as illustrated
in Fig. 1.3. C is the mother of all the three modern languages. C# modernizes C++ by
enhancing some of its features and adding a few new features so as to help developers
do more with fewer lines of code and fewer opportunities for error.
@ 2010 Tata McGraw-Hill Education
9
Education
@ 2010 Tata McGraw-Hill Education
10
Education
CHARACTERISTICS OF C#
As pointed out earlier, the main design goal of C# was simplicity rather than pure
power. C# fulfills the need for a language that is easy to write, read and maintain
and also provides the power and flexibility of C++. The language that is designed
for both computing and communications is characterized by several key features. It
is
•Simple
•Object-oriented
•Compatible
•Consistent
•Type-safe
•Interoperable and
•Modern
•Versionable
•Flexible
@ 2010 Tata McGraw-Hill Education
11
Education
APPLICATIONS OF C#
As pointed out earlier, C# is a new language developed exclusively to suit the
features of .NET platform. It can be used for a variety of applications that are
supported by the .NET platform:
Console applications
Windows applications
Developing Windows controls
Developing ASP.NET projects
Creating Web controls
Providing Web services
Developing .NET component library
@ 2010 Tata McGraw-Hill Education
12
Education
HOW DOES C# DIFFER FROM C++?
As stated earlier, C# was derived from C++ to make it the language of
choice for C and C++ programmers. C# therefore shares major parts of
syntax with C++. However, the C# designers introduced a few changes in the
syntax of C++ and removed a few features primarily to reduce the common
pitfalls that occurred in C++ program development. They also added a
number of additional features to make C# a type-safe and web-enabled
language.
HOW DOES C# DIFFER FROM JAVA ?
Like C#, Java was also derived from C++ and therefore they have similar
roots. Moreover, C# was developed by Microsoft as an alternative to Java for
web programming. C# has borrowed many good features from Java, which
has already become a popular Internet language. However, there exist a
number of differences between C# and Java:

More Related Content

What's hot

C language part 1
C language part  1C language part  1
C language part 1
PadmavathyK1
 
C# chap 1
C# chap 1C# chap 1
C sharp chap1
C sharp chap1C sharp chap1
C sharp chap1
Mukesh Tekwani
 
C language
C languageC language
C language
Rohit Singh
 
Visula C# Programming Lecture 1
Visula C# Programming Lecture 1Visula C# Programming Lecture 1
Visula C# Programming Lecture 1
Abou Bakr Ashraf
 
C Programming language - introduction
C Programming  language - introduction  C Programming  language - introduction
C Programming language - introduction
GopikaS12
 
C programming introduction
C programming introductionC programming introduction
C programming introduction
Ducat
 
Input output in c
Input output in cInput output in c
Input output in c
Ducat
 
Abc c program
Abc c programAbc c program
Abc c program
Dayakar Siddula
 
C Unit 1 notes PREPARED BY MVB REDDY
C Unit 1 notes PREPARED BY MVB REDDYC Unit 1 notes PREPARED BY MVB REDDY
C Unit 1 notes PREPARED BY MVB REDDY
Rajeshkumar Reddy
 
Introduction to c language
Introduction to c language Introduction to c language
Introduction to c language
BAKRANIYA KALPESH
 
Introduction to C Language
Introduction to C LanguageIntroduction to C Language
Introduction to C Language
Tarun Sharma
 
Which programming language should you learn next?
Which programming language should you learn next? Which programming language should you learn next?
Which programming language should you learn next?
Ganesh Samarthyam
 
Comparative Study of programming Languages
Comparative Study of programming LanguagesComparative Study of programming Languages
Comparative Study of programming Languages
Ishan Monga
 
Intoduction to c language
Intoduction to c languageIntoduction to c language
Intoduction to c language
Student
 
Introduction to c_language
Introduction to c_languageIntroduction to c_language
Introduction to c_language
Way2itech
 
1 introduction to c programming language
1 introduction to c programming language1 introduction to c programming language
1 introduction to c programming language
Narendra Soni
 
6 Week C++ Language Training In Ambala
6 Week C++ Language Training In Ambala6 Week C++ Language Training In Ambala
6 Week C++ Language Training In Ambala
Batra Computer Centre
 
PROGRAMMING LANGUAGES
PROGRAMMING LANGUAGESPROGRAMMING LANGUAGES
PROGRAMMING LANGUAGES
ABHINAV SINGH
 
C & C++ Training in Ambala ! BATRA COMPUTER CENTRE
C & C++ Training in Ambala ! BATRA COMPUTER CENTREC & C++ Training in Ambala ! BATRA COMPUTER CENTRE
C & C++ Training in Ambala ! BATRA COMPUTER CENTRE
jatin batra
 

What's hot (20)

C language part 1
C language part  1C language part  1
C language part 1
 
C# chap 1
C# chap 1C# chap 1
C# chap 1
 
C sharp chap1
C sharp chap1C sharp chap1
C sharp chap1
 
C language
C languageC language
C language
 
Visula C# Programming Lecture 1
Visula C# Programming Lecture 1Visula C# Programming Lecture 1
Visula C# Programming Lecture 1
 
C Programming language - introduction
C Programming  language - introduction  C Programming  language - introduction
C Programming language - introduction
 
C programming introduction
C programming introductionC programming introduction
C programming introduction
 
Input output in c
Input output in cInput output in c
Input output in c
 
Abc c program
Abc c programAbc c program
Abc c program
 
C Unit 1 notes PREPARED BY MVB REDDY
C Unit 1 notes PREPARED BY MVB REDDYC Unit 1 notes PREPARED BY MVB REDDY
C Unit 1 notes PREPARED BY MVB REDDY
 
Introduction to c language
Introduction to c language Introduction to c language
Introduction to c language
 
Introduction to C Language
Introduction to C LanguageIntroduction to C Language
Introduction to C Language
 
Which programming language should you learn next?
Which programming language should you learn next? Which programming language should you learn next?
Which programming language should you learn next?
 
Comparative Study of programming Languages
Comparative Study of programming LanguagesComparative Study of programming Languages
Comparative Study of programming Languages
 
Intoduction to c language
Intoduction to c languageIntoduction to c language
Intoduction to c language
 
Introduction to c_language
Introduction to c_languageIntroduction to c_language
Introduction to c_language
 
1 introduction to c programming language
1 introduction to c programming language1 introduction to c programming language
1 introduction to c programming language
 
6 Week C++ Language Training In Ambala
6 Week C++ Language Training In Ambala6 Week C++ Language Training In Ambala
6 Week C++ Language Training In Ambala
 
PROGRAMMING LANGUAGES
PROGRAMMING LANGUAGESPROGRAMMING LANGUAGES
PROGRAMMING LANGUAGES
 
C & C++ Training in Ambala ! BATRA COMPUTER CENTRE
C & C++ Training in Ambala ! BATRA COMPUTER CENTREC & C++ Training in Ambala ! BATRA COMPUTER CENTRE
C & C++ Training in Ambala ! BATRA COMPUTER CENTRE
 

Similar to C# Introduction brief

programming in c#.ppt
programming in c#.pptprogramming in c#.ppt
programming in c#.ppt
NalinaKumari2
 
C# handout.docx
C# handout.docxC# handout.docx
C# handout.docx
LenchoMamudeBaro
 
Programming in c#
Programming in c#Programming in c#
Programming in c#
Shehrevar Davierwala
 
11 Reasons Why C# is the Right Choice for Your Next Project
11 Reasons Why C# is the Right Choice for Your Next Project11 Reasons Why C# is the Right Choice for Your Next Project
11 Reasons Why C# is the Right Choice for Your Next Project
SofiaCarter4
 
20210417-cppRelevancy-DataStructures.pptx
20210417-cppRelevancy-DataStructures.pptx20210417-cppRelevancy-DataStructures.pptx
20210417-cppRelevancy-DataStructures.pptx
Suman Garai
 
Reasons Why .NET framework is Most Demanding in 2023?
Reasons Why .NET framework is Most Demanding in 2023?Reasons Why .NET framework is Most Demanding in 2023?
Reasons Why .NET framework is Most Demanding in 2023?
Polyxer Systems
 
Ten compelling reasons to learn .net framework
Ten compelling reasons to learn .net frameworkTen compelling reasons to learn .net framework
Ten compelling reasons to learn .net framework
JanBask Training
 
What is C.docx
What is C.docxWhat is C.docx
What is C.docx
ChristopherHerring9
 
The Importance of C Language in the Tech Industry.pdf
The Importance of C Language in the Tech Industry.pdfThe Importance of C Language in the Tech Industry.pdf
The Importance of C Language in the Tech Industry.pdf
SaniyaSharma28
 
Best Engineering College in Jaipur.pdf..
Best Engineering College in Jaipur.pdf..Best Engineering College in Jaipur.pdf..
Best Engineering College in Jaipur.pdf..
AbhishekShaarma
 
Advance C# Programming Part 1.pptx
Advance C# Programming Part 1.pptxAdvance C# Programming Part 1.pptx
Advance C# Programming Part 1.pptx
percivalfernandez3
 
Best things to know about .net framework
Best things to know about .net frameworkBest things to know about .net framework
Best things to know about .net framework
Shelly Megan
 
DotNet Fundamentals
DotNet FundamentalsDotNet Fundamentals
DotNet Fundamentals
Majdi SAIBI
 
Event Driven Programming in C#.docx
Event Driven Programming in C#.docxEvent Driven Programming in C#.docx
Event Driven Programming in C#.docx
LenchoMamudeBaro
 
C#.pptx
C#.pptxC#.pptx
Different programming languages
Different programming languagesDifferent programming languages
Different programming languages
Kunal Negi
 
Advance C# Programming Part 1.pdf
Advance C# Programming Part 1.pdfAdvance C# Programming Part 1.pdf
Advance C# Programming Part 1.pdf
percivalfernandez2
 
C#
C#C#
The top programming languages for mobile app development in 2024
The top programming languages for mobile app development in 2024The top programming languages for mobile app development in 2024
The top programming languages for mobile app development in 2024
Simublade Technology
 
A Research Study of Data Collection and Analysis of Semantics of Programming ...
A Research Study of Data Collection and Analysis of Semantics of Programming ...A Research Study of Data Collection and Analysis of Semantics of Programming ...
A Research Study of Data Collection and Analysis of Semantics of Programming ...
IRJET Journal
 

Similar to C# Introduction brief (20)

programming in c#.ppt
programming in c#.pptprogramming in c#.ppt
programming in c#.ppt
 
C# handout.docx
C# handout.docxC# handout.docx
C# handout.docx
 
Programming in c#
Programming in c#Programming in c#
Programming in c#
 
11 Reasons Why C# is the Right Choice for Your Next Project
11 Reasons Why C# is the Right Choice for Your Next Project11 Reasons Why C# is the Right Choice for Your Next Project
11 Reasons Why C# is the Right Choice for Your Next Project
 
20210417-cppRelevancy-DataStructures.pptx
20210417-cppRelevancy-DataStructures.pptx20210417-cppRelevancy-DataStructures.pptx
20210417-cppRelevancy-DataStructures.pptx
 
Reasons Why .NET framework is Most Demanding in 2023?
Reasons Why .NET framework is Most Demanding in 2023?Reasons Why .NET framework is Most Demanding in 2023?
Reasons Why .NET framework is Most Demanding in 2023?
 
Ten compelling reasons to learn .net framework
Ten compelling reasons to learn .net frameworkTen compelling reasons to learn .net framework
Ten compelling reasons to learn .net framework
 
What is C.docx
What is C.docxWhat is C.docx
What is C.docx
 
The Importance of C Language in the Tech Industry.pdf
The Importance of C Language in the Tech Industry.pdfThe Importance of C Language in the Tech Industry.pdf
The Importance of C Language in the Tech Industry.pdf
 
Best Engineering College in Jaipur.pdf..
Best Engineering College in Jaipur.pdf..Best Engineering College in Jaipur.pdf..
Best Engineering College in Jaipur.pdf..
 
Advance C# Programming Part 1.pptx
Advance C# Programming Part 1.pptxAdvance C# Programming Part 1.pptx
Advance C# Programming Part 1.pptx
 
Best things to know about .net framework
Best things to know about .net frameworkBest things to know about .net framework
Best things to know about .net framework
 
DotNet Fundamentals
DotNet FundamentalsDotNet Fundamentals
DotNet Fundamentals
 
Event Driven Programming in C#.docx
Event Driven Programming in C#.docxEvent Driven Programming in C#.docx
Event Driven Programming in C#.docx
 
C#.pptx
C#.pptxC#.pptx
C#.pptx
 
Different programming languages
Different programming languagesDifferent programming languages
Different programming languages
 
Advance C# Programming Part 1.pdf
Advance C# Programming Part 1.pdfAdvance C# Programming Part 1.pdf
Advance C# Programming Part 1.pdf
 
C#
C#C#
C#
 
The top programming languages for mobile app development in 2024
The top programming languages for mobile app development in 2024The top programming languages for mobile app development in 2024
The top programming languages for mobile app development in 2024
 
A Research Study of Data Collection and Analysis of Semantics of Programming ...
A Research Study of Data Collection and Analysis of Semantics of Programming ...A Research Study of Data Collection and Analysis of Semantics of Programming ...
A Research Study of Data Collection and Analysis of Semantics of Programming ...
 

More from Prasanna Kumar SM

Structure and Enum in c#
Structure and Enum in c#Structure and Enum in c#
Structure and Enum in c#
Prasanna Kumar SM
 
Operators and Expressions in C#
Operators and Expressions in C#Operators and Expressions in C#
Operators and Expressions in C#
Prasanna Kumar SM
 
Methods in C#
Methods in C#Methods in C#
Methods in C#
Prasanna Kumar SM
 
Literals,variables,datatype in C#
Literals,variables,datatype in C#Literals,variables,datatype in C#
Literals,variables,datatype in C#
Prasanna Kumar SM
 
Decision making and loop in C#
Decision making and loop in C#Decision making and loop in C#
Decision making and loop in C#
Prasanna Kumar SM
 
C# intro
C# introC# intro

More from Prasanna Kumar SM (6)

Structure and Enum in c#
Structure and Enum in c#Structure and Enum in c#
Structure and Enum in c#
 
Operators and Expressions in C#
Operators and Expressions in C#Operators and Expressions in C#
Operators and Expressions in C#
 
Methods in C#
Methods in C#Methods in C#
Methods in C#
 
Literals,variables,datatype in C#
Literals,variables,datatype in C#Literals,variables,datatype in C#
Literals,variables,datatype in C#
 
Decision making and loop in C#
Decision making and loop in C#Decision making and loop in C#
Decision making and loop in C#
 
C# intro
C# introC# intro
C# intro
 

Recently uploaded

Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 

C# Introduction brief

  • 1. @ 2010 Tata McGraw-Hill Education 1 Education Introducing C#Introducing C# C #’ (pronounced as ‘C sharp’) is a new computer-programming language developed by Microsoft Corporation, USA. C# is a fully object-oriented language like Java and is the first component –oriented language. It has been designed t support the key features of .NET Framework, the new development platform of Microsoft for building component-based software solutions. It is a simple, efficient, productive and type-safe language derived from the popular C and C++ languages. Although it belongs to the family of C / C++, it is a purely objected-oriented, modern language suitable for developing Web based applications
  • 2. @ 2010 Tata McGraw-Hill Education 2 Education  It is a brand new language derived from the C / C++ family  It simplifies and modernizes C++  It is the only component-oriented language available today  It is the only language designed for the .NET Framework  It is a concise, lean and modern language  It combines the best features of many commonly used languages: the productivity of Visual Basic, the power of C++ and the elegance of Java  It is intrinsically object-oriented and web-enabled  It has a lean and consistent syntax  It embodies today’s concern for simplicity, productivity and robustness  It will become the language of choice for .NET programming  Major parts of .NET Framework are actually coded in C# C# is designed for building robust, reliable and durable components to handle real- world applications. Major highlights of C# are:
  • 3. @ 2010 Tata McGraw-Hill Education 3 Education WHY C#? A large number of computer languages, starting from FORTRAN developed in 1957 to the object-oriented language Java introduced in 1995, are being used for various applications. The choice of language depends upon many factors such as hardware environment, business environment, user requirements and so on. The primary motivation while developing each of these languages has been the concern that it be able to handle the increasing complexity of programs that are robust, durable and maintainable. The history of major languages developed during the last three decades is given in Fig. 1.1
  • 4. @ 2010 Tata McGraw-Hill Education 4 Education
  • 5. @ 2010 Tata McGraw-Hill Education 5 Education C and C++ have been the two most popular and most widely used languages in the software industry for the past two decades. However, these languages suffer from a number of shortcomings in meeting the emerging World Wide Web requirements and standards. Of concern are the following: The high complexity of the language Their long cycle-time They are not truly object-oriented They are not suitable for working with new web technologies They have poor type-safety They are prone to costly programming errors They do not support versioning They are prone to memory leakages Their low productivity Their poor interoperability with the existing systems They are weak in consistency Their poor support for component programming
  • 6. @ 2010 Tata McGraw-Hill Education 6 Education Java, a language derived from C / C++ family, however, is truly object-oriented and has been widely used for web applications for the past five years. Unfortunately, Java has not retained some powerful C++ features such as operator overloading. It also lacks inter-operability with code developed in other languages. Microsoft wanted an environment that is completely in tune with current and emerging Web programming practices and one that easily integrates with existing systems. Microsoft therefore decided to design a new language starting with a clean slate. The result is C#, a simple and modern language that directly addresses the needs of component-based software development.
  • 7. @ 2010 Tata McGraw-Hill Education 7 Education Microsoft Chairman Bill Gates, the architect of many innovative and path-breaking software products during the past two decades, wanted to develop a software platform which enable users to get information anytime and anywhere, using a natural interface. Although the research and development work of .NET platform began in the mid- 90s, only during the Microsoft Professional Developers Conference in September 2000, was .NET officially announced to the developer community. At the same conference, Microsoft introduced C# as a de facto language of the .NET platform. In fact, they had already used C# to code key modules of the .NET platform. C# has been particularly designed to build software components for .NET and it supports key features of .NET natively. They are fairly tightly tied together. In fact, C# compiler is embedded into .NET as shown in Fig. 1.2.
  • 8. @ 2010 Tata McGraw-Hill Education 8 Education Like Java, C# is a descendant of C++ which in turn is a descendant of C as illustrated in Fig. 1.3. C is the mother of all the three modern languages. C# modernizes C++ by enhancing some of its features and adding a few new features so as to help developers do more with fewer lines of code and fewer opportunities for error.
  • 9. @ 2010 Tata McGraw-Hill Education 9 Education
  • 10. @ 2010 Tata McGraw-Hill Education 10 Education CHARACTERISTICS OF C# As pointed out earlier, the main design goal of C# was simplicity rather than pure power. C# fulfills the need for a language that is easy to write, read and maintain and also provides the power and flexibility of C++. The language that is designed for both computing and communications is characterized by several key features. It is •Simple •Object-oriented •Compatible •Consistent •Type-safe •Interoperable and •Modern •Versionable •Flexible
  • 11. @ 2010 Tata McGraw-Hill Education 11 Education APPLICATIONS OF C# As pointed out earlier, C# is a new language developed exclusively to suit the features of .NET platform. It can be used for a variety of applications that are supported by the .NET platform: Console applications Windows applications Developing Windows controls Developing ASP.NET projects Creating Web controls Providing Web services Developing .NET component library
  • 12. @ 2010 Tata McGraw-Hill Education 12 Education HOW DOES C# DIFFER FROM C++? As stated earlier, C# was derived from C++ to make it the language of choice for C and C++ programmers. C# therefore shares major parts of syntax with C++. However, the C# designers introduced a few changes in the syntax of C++ and removed a few features primarily to reduce the common pitfalls that occurred in C++ program development. They also added a number of additional features to make C# a type-safe and web-enabled language. HOW DOES C# DIFFER FROM JAVA ? Like C#, Java was also derived from C++ and therefore they have similar roots. Moreover, C# was developed by Microsoft as an alternative to Java for web programming. C# has borrowed many good features from Java, which has already become a popular Internet language. However, there exist a number of differences between C# and Java: