SlideShare a Scribd company logo
Session4 csharp
AW
Prepared and presented by :
Muhammad Hesham & Mustafa Saeed
Aspiration Webbers
Session 4 (C#)
1.Reko meet C# (Brief history)
2. What C# can do (New Comers)
3. Architecture of .NET Applications
4. Data types
5. C# syntax
C#
Session4 csharp
New Comer
Editors
Visual Studio Code
IDE
Visual studio
CLR
Library
namespace
class
method
statement
Architecture of .NET Applications
Architecture of .NET Applications
namespace ConsoleApplication
using System;
public static void Main()
public class Program
Console.WriteLine("Hello World!");
Library
namespace
class
method
statement
Data types
Syntax
// Comment
Variables Comments
/*
Comments
comment
*/
int x = 20 ;
String name = “Reko” ;
char z = ‘R’ ;
Operators
Addition+
Subtraction-
Multiplication*
Division/
Modulus%
Increment
Decrement
++
--
int x = 20 10% ;
int x = 20 10- ;
int x = 20 10* ;
int x = 20 10/ ;
int x = 20 10+ ;
x++;
x--;int x =
int x = 20;
20 ;
And&&
Or||
namespace
namespace ConsoleApp1
{
}
Data
Name
Age
Address
Actions
Walk()
Talk()
Sleep()
Class
class
class Program
{
}
namespace ConsoleApp1
{
}
public class Person
{
public int Age { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public void WhatIsMyName()
{
}
public int Calculate(int firstNum, int secondNum)
{
}
}
Object
Class
method
class Program
{
}
namespace ConsoleApp1
{
}
static void Main(string[] args)
{
}
Person myPerson = new Person();
myPerson.FirstName = "Reko";
myPerson.LastName = "MSP";
myPerson.Age = 17;
myPerson.WhatIsMyName();
var result = myPerson.Calculate(10, 20);
Console.WriteLine(result);
Object
method
public class Program
{
}
namespace sessionFourDemo
{
}
static void Main(string[] args)
{
Console.WriteLine(“Hello World”);
}
method
public class Program
{
}
namespace sessionFourDemo
{
}
static void Main(string[] args)
{
String name = Console.ReadLine();
Console.WriteLine(name);
}
New class New method
private class Person
{
}
namespace sessionFourDemo
{
}
public void WhatIsMyName()
{
Console.WriteLine(“Hello world");
}
public class Program
{
}
namespace sessionFourDemo
{
}
static void Main(string[] args)
{
Console.WriteLine(WhatIsMyName());
}
New class New method
public class Person
{
}
namespace sessionFourDemo
{
}
public int Calcu(int ftNum , int snNum)
{
return ftNum + snNum;
}
public class Program
{
}
namespace sessionFourDemo
{
}
static void Main(string[] args)
{
Console.WriteLine(Calcu(5,3));
}
8
if
Switch
For .. Loop
While ..Loop
array
lists
For each
Demo
Any Questions ?
Contact :
phmustafasaeed@outlook.com
Muhammad.hesham7@outlook.com
FB.com/groups/AWMSPCU17
Session4 csharp

More Related Content

PPSX
Session Four C#
PPTX
Native Development for Windows Phone 8
PDF
DOCX
java program assigment -1
PPTX
Next .NET and C#
PPT
Visual Studio .NET2010
PDF
PPTX
21csharp
Session Four C#
Native Development for Windows Phone 8
java program assigment -1
Next .NET and C#
Visual Studio .NET2010
21csharp

Similar to Session4 csharp (20)

DOCX
csharp.docx
PPTX
csharp_dotnet_adnanreza.pptx
PPTX
C#unit4
PDF
Understanding C# in .NET
DOCX
Mit4021–%20 c# and .net
PPTX
Top 20 c# interview Question and answers
PPTX
Introduction to C#
PPTX
CSharp_NET_Overview.pptxxxxxxxxxxxxxxxxxxxxxx
PPTX
introduction to c #
PPTX
PPT
ASP.NET Session 3
PPTX
CSharp Presentation
PPT
fdjkhdjkfhdjkjdkfhkjshfjkhdkjfhdjkhf2124C_2.ppt
PDF
Dr archana dhawan bajaj - csharp fundamentals slides
PDF
21UCAC61 C# and .Net Programming.pdf(MTNC)(BCA)
PPT
Object Oriented Programming (Advanced )
PDF
Programming C 40 Building Windows Web And Ria Applications For The Net With C...
PPTX
.NET and C# introduction
PPT
Synapseindia dot net development
PDF
Intake 38_1
csharp.docx
csharp_dotnet_adnanreza.pptx
C#unit4
Understanding C# in .NET
Mit4021–%20 c# and .net
Top 20 c# interview Question and answers
Introduction to C#
CSharp_NET_Overview.pptxxxxxxxxxxxxxxxxxxxxxx
introduction to c #
ASP.NET Session 3
CSharp Presentation
fdjkhdjkfhdjkjdkfhkjshfjkhdkjfhdjkhf2124C_2.ppt
Dr archana dhawan bajaj - csharp fundamentals slides
21UCAC61 C# and .Net Programming.pdf(MTNC)(BCA)
Object Oriented Programming (Advanced )
Programming C 40 Building Windows Web And Ria Applications For The Net With C...
.NET and C# introduction
Synapseindia dot net development
Intake 38_1
Ad

More from Muhammad Hesham (7)

PPSX
3rd session
PPSX
2nd session
PPSX
1st session
PPSX
4th session
PPTX
Session 3 Java Script
PPSX
Session 2 intro to Css
PPSX
Session 1
3rd session
2nd session
1st session
4th session
Session 3 Java Script
Session 2 intro to Css
Session 1
Ad

Recently uploaded (20)

PPTX
sap open course for s4hana steps from ECC to s4
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Cloud computing and distributed systems.
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
cuic standard and advanced reporting.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Encapsulation theory and applications.pdf
PPT
Teaching material agriculture food technology
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
sap open course for s4hana steps from ECC to s4
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Chapter 3 Spatial Domain Image Processing.pdf
A comparative analysis of optical character recognition models for extracting...
MIND Revenue Release Quarter 2 2025 Press Release
Advanced methodologies resolving dimensionality complications for autism neur...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Cloud computing and distributed systems.
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Review of recent advances in non-invasive hemoglobin estimation
Agricultural_Statistics_at_a_Glance_2022_0.pdf
cuic standard and advanced reporting.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Approach and Philosophy of On baking technology
Encapsulation theory and applications.pdf
Teaching material agriculture food technology
“AI and Expert System Decision Support & Business Intelligence Systems”
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Big Data Technologies - Introduction.pptx
Assigned Numbers - 2025 - Bluetooth® Document

Session4 csharp