SlideShare a Scribd company logo
Introduction to C#
 C# is a modern, general-purpose, object-oriented programming language .
 developed by Microsoft.
 Why C#?
 It is a modern, general-purpose programming language
 It is object oriented.
 It is easy to learn.
 It produces efficient programs.
 It can be compiled on a variety of computer platforms.
 It is a part of .Net Framework.
Lecturer: Asadullah Eman Email: asademan.aez@gmail.com
2022
Features of C#
 Boolean Conditions
 Automatic Garbage Collection
 Standard Library
 Integration with Windows
 Simple Multithreading
 Easy-to-use Generics
 Conditional Compilation
Lecturer: Asadullah Eman Email: asademan.aez@gmail.com
2022
C#-Environment
 .Net Framework
 Windows applications
 Web applications
 Web services
 IDEs
Visual Studio
Visual C# Express
Visual Web Developer
Lecturer: Asadullah Eman Email: asademan.aez@gmail.com
2022
C#-Program Structure
 Namespace declaration
 One or multiple namespaces
 A class
 Class methods
 Class attributes
 A Main method()
 Statements and Expressions
 Comments (/* I’m a comment */ )
Lecturer: Asadullah Eman Email: asademan.aez@gmail.com
2022
Important Points
 Case sensitive
 Statements ends with Semicolon(;)
 Execution starts at the main()
 Filename could be different than classname
 File extension .cs
Lecturer: Asadullah Eman Email: asademan.aez@gmail.com
2022
Compiling and Executing the Program
 Using Visual Studio:
 Run button
 Shortcut F5
Lecturer: Asadullah Eman Email: asademan.aez@gmail.com
2022
C#-Basic Syntax
 Member Variables
 Variables declared in a class
 Member Methods
 Methods declared in a class
 Instantiating a Class
 Make an object
Lecturer: Asadullah Eman Email: asademan.aez@gmail.com
2022
Identifier
 An identifier is a name used to identify a class, variable, function, or any other user-defined item.
 Rules:
 Begins with letters followed by digits and underscore
 Not contain space $ special characters
 Not keywords
 E.g int length; int r_length int r22
Lecturer: Asadullah Eman Email: asademan.aez@gmail.com
2022
C#-Keywords
 Keywords are reserved words predefined to the C# compiler.
 Examples
 Class
 Static
 Abstract
 True
 False
 Bool
 Case
 As
 etc
Lecturer: Asadullah Eman Email: asademan.aez@gmail.com
2022
C#-Data Types
 The variables in C#, are categorized into the following types:
 Value types
 Reference types
 Pointer types
Lecturer: Asadullah Eman Email: asademan.aez@gmail.com
2022

More Related Content

DOCX
csharp.docx
PPSX
Microsoft C# programming basics
DOCX
Mit4021–%20 c# and .net
PPTX
C# lecture 1: Introduction to Dot Net Framework
PDF
Introduction to C3.net Architecture unit
PDF
Learn C# programming - Program Structure & Basic Syntax
PDF
C 7 and NET Core Modern Cross Platform Development 2nd Edition Mark J. Price
PPTX
csharp.docx
Microsoft C# programming basics
Mit4021–%20 c# and .net
C# lecture 1: Introduction to Dot Net Framework
Introduction to C3.net Architecture unit
Learn C# programming - Program Structure & Basic Syntax
C 7 and NET Core Modern Cross Platform Development 2nd Edition Mark J. Price

Similar to CSharp Programming.pptx (20)

DOCX
VKV TECHNOLOGIES BEST C SHARP.NET TRAINING IN CHENNAI
PPT
PDF
C# Dot net unit-3.pdf
DOCX
Event Driven Programming in C#.docx
PPTX
Introduction to c#
PDF
C Programming Building Blocks Of Modern Code Edet Theophilus
PDF
Lecture-1&2.pdf Visual Programming C# .net framework
PDF
22316-2019-Summer-model-answer-paper.pdf
PDF
Case studies of common csharp project report.pdf
PDF
T2
PDF
Dot Net Fundamentals
PPT
Unit 2 ppt
PPTX
Presentation1
PPT
Overview of c#
PDF
OOPS_Lab_Manual - programs using C++ programming language
DOCX
Srgoc dotnet_new
PDF
"Technical Challenges behind Visual IDE for React Components" Tetiana Mandziuk
PDF
Migrating From Cpp To C Sharp
DOCX
LAB 1 Report.docx
PDF
NET Programming A Practical Guide Using C 1st Edition Pradeep Tapadiya
VKV TECHNOLOGIES BEST C SHARP.NET TRAINING IN CHENNAI
C# Dot net unit-3.pdf
Event Driven Programming in C#.docx
Introduction to c#
C Programming Building Blocks Of Modern Code Edet Theophilus
Lecture-1&2.pdf Visual Programming C# .net framework
22316-2019-Summer-model-answer-paper.pdf
Case studies of common csharp project report.pdf
T2
Dot Net Fundamentals
Unit 2 ppt
Presentation1
Overview of c#
OOPS_Lab_Manual - programs using C++ programming language
Srgoc dotnet_new
"Technical Challenges behind Visual IDE for React Components" Tetiana Mandziuk
Migrating From Cpp To C Sharp
LAB 1 Report.docx
NET Programming A Practical Guide Using C 1st Edition Pradeep Tapadiya
Ad

Recently uploaded (20)

PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
AI in Product Development-omnex systems
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
Introduction to Artificial Intelligence
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
ai tools demonstartion for schools and inter college
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Understanding Forklifts - TECH EHS Solution
Navsoft: AI-Powered Business Solutions & Custom Software Development
AI in Product Development-omnex systems
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Wondershare Filmora 15 Crack With Activation Key [2025
CHAPTER 2 - PM Management and IT Context
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Upgrade and Innovation Strategies for SAP ERP Customers
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Introduction to Artificial Intelligence
How to Choose the Right IT Partner for Your Business in Malaysia
ai tools demonstartion for schools and inter college
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
2025 Textile ERP Trends: SAP, Odoo & Oracle
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
How Creative Agencies Leverage Project Management Software.pdf
VVF-Customer-Presentation2025-Ver1.9.pptx
Understanding Forklifts - TECH EHS Solution
Ad

CSharp Programming.pptx

  • 1. Introduction to C#  C# is a modern, general-purpose, object-oriented programming language .  developed by Microsoft.  Why C#?  It is a modern, general-purpose programming language  It is object oriented.  It is easy to learn.  It produces efficient programs.  It can be compiled on a variety of computer platforms.  It is a part of .Net Framework. Lecturer: Asadullah Eman Email: asademan.aez@gmail.com 2022
  • 2. Features of C#  Boolean Conditions  Automatic Garbage Collection  Standard Library  Integration with Windows  Simple Multithreading  Easy-to-use Generics  Conditional Compilation Lecturer: Asadullah Eman Email: asademan.aez@gmail.com 2022
  • 3. C#-Environment  .Net Framework  Windows applications  Web applications  Web services  IDEs Visual Studio Visual C# Express Visual Web Developer Lecturer: Asadullah Eman Email: asademan.aez@gmail.com 2022
  • 4. C#-Program Structure  Namespace declaration  One or multiple namespaces  A class  Class methods  Class attributes  A Main method()  Statements and Expressions  Comments (/* I’m a comment */ ) Lecturer: Asadullah Eman Email: asademan.aez@gmail.com 2022
  • 5. Important Points  Case sensitive  Statements ends with Semicolon(;)  Execution starts at the main()  Filename could be different than classname  File extension .cs Lecturer: Asadullah Eman Email: asademan.aez@gmail.com 2022
  • 6. Compiling and Executing the Program  Using Visual Studio:  Run button  Shortcut F5 Lecturer: Asadullah Eman Email: asademan.aez@gmail.com 2022
  • 7. C#-Basic Syntax  Member Variables  Variables declared in a class  Member Methods  Methods declared in a class  Instantiating a Class  Make an object Lecturer: Asadullah Eman Email: asademan.aez@gmail.com 2022
  • 8. Identifier  An identifier is a name used to identify a class, variable, function, or any other user-defined item.  Rules:  Begins with letters followed by digits and underscore  Not contain space $ special characters  Not keywords  E.g int length; int r_length int r22 Lecturer: Asadullah Eman Email: asademan.aez@gmail.com 2022
  • 9. C#-Keywords  Keywords are reserved words predefined to the C# compiler.  Examples  Class  Static  Abstract  True  False  Bool  Case  As  etc Lecturer: Asadullah Eman Email: asademan.aez@gmail.com 2022
  • 10. C#-Data Types  The variables in C#, are categorized into the following types:  Value types  Reference types  Pointer types Lecturer: Asadullah Eman Email: asademan.aez@gmail.com 2022