SlideShare a Scribd company logo
c# usage,applications and advantages
Mohamed Adel Drahem
Name & history
The sharp symbol also resembles 
a ligature of four "+" symbols (in a 
two-by-two grid), further implying 
that the language is an increment 
of C++.
History of c#
 During the development of the .NET Framework, 
the class libraries were originally written using 
a managed code compiler system called Simple 
Managed C (SMC). In January 1999, Anders 
Hejlsberg formed a team to build a new language at 
the time called Cool, which stood for "C-like Object 
Oriented Language". Microsoft had considered 
keeping the name "Cool" as the final name of the 
language, but chose not to do so for trademark 
reasons. By the time the .NET project was publicly 
announced at the July 2000 Professional Developers 
Conference, the language had been renamed C#, and 
the class libraries and ASP.NET runtime had been 
ported to C#.
syntax
The core syntax of C# language 
is similar to that of other C-style 
languages such as C, C++ and 
Java. In particular:
 Semicolons are used to denote the end of a statement. 
 Curly brackets are used to group statements. 
Statements are commonly grouped into methods 
(functions), methods into classes, and classes 
into namespaces. 
 Variables are assigned using an equals sign, but 
compared using two consecutive equals signs. 
 Square brackets are used with arrays, both to declare 
them and to get a value at a given index in one of them.
c# usage,applications and advantages
Advantages over java
Advantages over java 
 Usually it is much more efficient than java 
and runs faster 
 CIL (Common (.NET) Intermediate 
Language) is a standard language, while 
java byte codes aren't 
 It has more primitive types (value types), 
including unsigned numeric types 
 Indexers let you access objects as if they 
were arrays 
 Conditional compilation
 Simplified multithreading 
 Operator overloading. It can make 
development a bit trickier but they are 
optional and sometimes very useful 
 (limited) use of pointers if you really need 
them, as when calling unmanaged (native) 
libraries which doesn't run on top of the 
virtual machine (CLR)
Advantages over C and C++ 
 It is compiled to an intermediate language (CIL) 
indepently of the language it was developed or the 
target architecture and operating system 
 Automatic garbage collection 
 Pointers no longer needed (but optional) 
 Reflection capabilities 
 Don't need to worry about header files ".h" 
 Definition of classes and functions can be done in any 
order
 Declaration of functions and classes not needed 
 Unexisting circular dependencies 
 Classes can be defined within classes 
 There are no global functions or variables, everything 
belongs to a class 
 All the variables are initialized to their default values 
before being used (this is automatic by default but can 
be done manually using static constructors)
 You can't use non-boolean variables (integers, floats...) 
as conditions. This is much more clean and less error 
prone 
 Apps can be executed within a restricted sandbox
c# usage,applications and advantages
Usage 
The three main types of application that can be written in C# 
 Winforms - Windows like Forms. 
 Console - Command line Input and Output. 
 Web Sites.
Some applications of c# 
 Simple command line utilities. Input stuff. Convert 
stuff. Output stuff. 
 Desktop applications. You can create a decent Forms 
based (or WPF based) GUI app fairly quickly in C#. 
 Windows service. GUI-less code that runs as a service 
that gets stuff as input, converts stuff and outputs 
stuff.
 • Data access layer. C# is a good language for providing 
the 'shim' between application code and the database. 
 • Web services. Exposing a web service API using C# is 
straight forward. And web services are a convenient 
way to communicate between different processes, 
especially if they are running on different 
machines/operating systems.

More Related Content

PPT
C#.NET
PPTX
CSharp Presentation
PPT
Introduction To C#
PPT
Introduction to .NET Framework
PPT
PPT
JavaScript Tutorial
PPTX
Windows Presentation Foundation
C#.NET
CSharp Presentation
Introduction To C#
Introduction to .NET Framework
JavaScript Tutorial
Windows Presentation Foundation

What's hot (20)

PPT
.Net framework
PPTX
Java script
PPTX
.Net framework
PPTX
Loops in java script
PPT
Jsp ppt
PPTX
.NET and C# Introduction
PPTX
C# lecture 2: Literals , Variables and Data Types in C#
PDF
WEB DEVELOPMENT USING REACT JS
PPT
Java-java virtual machine
PPTX
ASP.NET Page Life Cycle
PPTX
Presentation on "An Introduction to ReactJS"
PPTX
Introduction to C# Programming
PPS
Interface
PPTX
Validation Controls in asp.net
PPT
Introduction to Javascript
PPTX
Javascript
PDF
NodeJS for Beginner
PPTX
Microsoft dot net framework
PPT
C# basics
PDF
Learn C# Programming - Decision Making & Loops
.Net framework
Java script
.Net framework
Loops in java script
Jsp ppt
.NET and C# Introduction
C# lecture 2: Literals , Variables and Data Types in C#
WEB DEVELOPMENT USING REACT JS
Java-java virtual machine
ASP.NET Page Life Cycle
Presentation on "An Introduction to ReactJS"
Introduction to C# Programming
Interface
Validation Controls in asp.net
Introduction to Javascript
Javascript
NodeJS for Beginner
Microsoft dot net framework
C# basics
Learn C# Programming - Decision Making & Loops
Ad

Viewers also liked (9)

PPTX
.NET and C# introduction
ODP
C# and the Evolution of a Programming Language
PPT
14. Defining Classes
PPT
0. Course Introduction
PPT
08. Numeral Systems
PPT
Programming in c#
PPTX
C# Tutorial
PPT
20. Object-Oriented Programming Fundamental Principles
PPT
17. Trees and Graphs
.NET and C# introduction
C# and the Evolution of a Programming Language
14. Defining Classes
0. Course Introduction
08. Numeral Systems
Programming in c#
C# Tutorial
20. Object-Oriented Programming Fundamental Principles
17. Trees and Graphs
Ad

Similar to c# usage,applications and advantages (20)

PPTX
PPTX
PPTX
PDF
21UCAC61 C# and .Net Programming.pdf(MTNC)(BCA)
PPTX
Advance C# Programming Part 1.pptx
PDF
Advance C# Programming Part 1.pdf
PPT
PPT
Introduction to c_sharp
PPT
Introduction to c_sharp
PPT
David buksbaum a-briefintroductiontocsharp
PDF
Introduction to C3.net Architecture unit
PPT
Programming with c#
21UCAC61 C# and .Net Programming.pdf(MTNC)(BCA)
Advance C# Programming Part 1.pptx
Advance C# Programming Part 1.pdf
Introduction to c_sharp
Introduction to c_sharp
David buksbaum a-briefintroductiontocsharp
Introduction to C3.net Architecture unit
Programming with c#

Recently uploaded (20)

PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPT
Mechanical Engineering MATERIALS Selection
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPT
Project quality management in manufacturing
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
web development for engineering and engineering
PDF
737-MAX_SRG.pdf student reference guides
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
III.4.1.2_The_Space_Environment.p pdffdf
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Operating System & Kernel Study Guide-1 - converted.pdf
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Foundation to blockchain - A guide to Blockchain Tech
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Mechanical Engineering MATERIALS Selection
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Project quality management in manufacturing
R24 SURVEYING LAB MANUAL for civil enggi
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
web development for engineering and engineering
737-MAX_SRG.pdf student reference guides
OOP with Java - Java Introduction (Basics)
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
III.4.1.2_The_Space_Environment.p pdffdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx

c# usage,applications and advantages

  • 4. The sharp symbol also resembles a ligature of four "+" symbols (in a two-by-two grid), further implying that the language is an increment of C++.
  • 6.  During the development of the .NET Framework, the class libraries were originally written using a managed code compiler system called Simple Managed C (SMC). In January 1999, Anders Hejlsberg formed a team to build a new language at the time called Cool, which stood for "C-like Object Oriented Language". Microsoft had considered keeping the name "Cool" as the final name of the language, but chose not to do so for trademark reasons. By the time the .NET project was publicly announced at the July 2000 Professional Developers Conference, the language had been renamed C#, and the class libraries and ASP.NET runtime had been ported to C#.
  • 8. The core syntax of C# language is similar to that of other C-style languages such as C, C++ and Java. In particular:
  • 9.  Semicolons are used to denote the end of a statement.  Curly brackets are used to group statements. Statements are commonly grouped into methods (functions), methods into classes, and classes into namespaces.  Variables are assigned using an equals sign, but compared using two consecutive equals signs.  Square brackets are used with arrays, both to declare them and to get a value at a given index in one of them.
  • 12. Advantages over java  Usually it is much more efficient than java and runs faster  CIL (Common (.NET) Intermediate Language) is a standard language, while java byte codes aren't  It has more primitive types (value types), including unsigned numeric types  Indexers let you access objects as if they were arrays  Conditional compilation
  • 13.  Simplified multithreading  Operator overloading. It can make development a bit trickier but they are optional and sometimes very useful  (limited) use of pointers if you really need them, as when calling unmanaged (native) libraries which doesn't run on top of the virtual machine (CLR)
  • 14. Advantages over C and C++  It is compiled to an intermediate language (CIL) indepently of the language it was developed or the target architecture and operating system  Automatic garbage collection  Pointers no longer needed (but optional)  Reflection capabilities  Don't need to worry about header files ".h"  Definition of classes and functions can be done in any order
  • 15.  Declaration of functions and classes not needed  Unexisting circular dependencies  Classes can be defined within classes  There are no global functions or variables, everything belongs to a class  All the variables are initialized to their default values before being used (this is automatic by default but can be done manually using static constructors)
  • 16.  You can't use non-boolean variables (integers, floats...) as conditions. This is much more clean and less error prone  Apps can be executed within a restricted sandbox
  • 18. Usage The three main types of application that can be written in C#  Winforms - Windows like Forms.  Console - Command line Input and Output.  Web Sites.
  • 19. Some applications of c#  Simple command line utilities. Input stuff. Convert stuff. Output stuff.  Desktop applications. You can create a decent Forms based (or WPF based) GUI app fairly quickly in C#.  Windows service. GUI-less code that runs as a service that gets stuff as input, converts stuff and outputs stuff.
  • 20.  • Data access layer. C# is a good language for providing the 'shim' between application code and the database.  • Web services. Exposing a web service API using C# is straight forward. And web services are a convenient way to communicate between different processes, especially if they are running on different machines/operating systems.