SlideShare una empresa de Scribd logo
1 de 69
Beginner - Intermediate 
WakeUpAndCode.com 
@shahedC
Introduction 
> Variables, Operators & Loops 
> Classes & Methods 
> Files & Exceptions 
Additional Topics
Period Background/Experience 
1997 – 
present 
Microsoft web/software development 
2011 XNA games on XBLIG for Xbox 360 
• 2D Math Panic 
• Angry Zombie Ninja Cats 
2012 Tools for XNA developers 
• XBLIG Sales Data Analyzer (OnekSoftLabs.com) 
• XNA Basic Starter Kit (CodePlex) 
Online: http://facebook.com/OnekSoftGames
Period Background/Experience 
2013 • Ninja Cat Runner on Win8, WP8, Web (Construct 2) 
• Video Q&A with MS Tech Evangelist Frank La Vigne 
• Founder/Admin of FB groups: Construct2, Xbox One & Unity Indie Devs 
• Started Public Speaking in DC area and East Coast 
2014 • Public Speaking on Indie Game Development 
• Joined Microsoft as a Sr. Technical Evangelist 
• Gallant Glider on Win8, WP8, Web (Construct 2  Universal App) 
Video Q&A: http://youtu.be/lRjrQPvVOpo MVA: http://aka.ms/DevGames-Const2
Source: Official Xbox Magazine, March 2014, Page 65 
`
http://www.visualstudio.com/downloads
http://www.visualstudio.com/products/visual-studio-community-vs 
http://aka.ms/vs2013ce
References 
Properties 
Panel 
Code Editor 
Toolbar 
Solution 
Explorer 
Ouput 
Start (Run)
http://www.dotnetspark.com/tutorialpic/clr.png
Start/Continue
Introduction 
> Variables, Operators & Loops 
> Classes & Methods 
> Files & Exceptions 
Additional Topics
using statements 
Method ( ) class 
Variables 
Data Types 
• Integer 
• String 
• var? 
Assignment 
Output 
namespace 
// 1-line comment 
/* multi-line 
comments */
Type Operators 
Unary Postfix Operators ++ -- 
Unary Prefix Operators ++ -- + - 
Multiplicative Operators * / % (modulus) 
Additive Operators + - 
Assignment Operators = 
lower higher
Type Operators 
Equality == != 
Logical AND & 
Logical XOR ^ 
Conditional AND && 
Conditional OR || 
Conditional Ternary Operator ?:
Declare 
& Assign 
StringBuilder 
Special Characters 
Literal Concatenate 
string.Format() 
Char Array 
String 
Functions
for loop 
while loop 
continue 
break 
switch-case statements 
default break 
if/else 
blocks
1 
3 2
Instance 
variable 
properties 
constructors 
public method 
private 
methods 
(overloaded) 
class declaration 
this keyword
parent class 
complex 
object 
public 
method 
private variable
1 
3 2
1 
2 
3
Set to 
enter sample data “Copy always”
Use System.IO 
namespace for 
StreamReader 
Handle possible 
exceptions with 
try-catch block
Introduction 
> Variables, Operators & Loops 
> Classes & Methods 
> Files & Exceptions 
Additional Topics
name of enum 
initialization 
not required 
enum keyword 
}
initialization 
if-else check 
} 
} 
initialization 
switch-case check
static class 
static method 
data type matches 
extended class 
e.g. string 
this keyword 
before 
first parameter
data type to be extended 
call extension 
method just like 
Instance method
placeholder within 
< angle brackets > 
right after 
method name 
placeholder used 
for one or more 
parameters
actual data type, e.g. <int> 
within < angle brackets > 
in place of placeholder 
a different data type!
Declare Lists of different types 
e.g. <string> and <int> 
} add values individually 
} add multiple values at once 
(separated by commas)
iterate through values 
using foreach loops
Two data types 
<int, string> for 
key-value pairs 
Initialize multiple values 
(separated by commas) 
Initialize individually
retrieve value, 
using [key] 
in square brackets
initialize number array 
retrieve contents
similar to SQL 
dot-notation 
e.g. myNums.Where() 
=> “goes to” syntax 
for input into expression
http://www.microsoftvirtualacademy.com/training-courses/ 
c-fundamentals-for-absolute-beginners 
http://www.microsoftvirtualacademy.com/training-courses/ 
developer-training-with-programming-in-c
http://nunit.org/index.php?p=quickStart&r=3.0
note public method
call public method 
assert returned result 
pass in input 
parameters 
and 
expected 
result
https://www.jetbrains.com/resharper/download/
Email: shchowd@microsoft.com  Twitter: @shahedC

Más contenido relacionado

La actualidad más candente

Real-World Scala Design Patterns
Real-World Scala Design PatternsReal-World Scala Design Patterns
Real-World Scala Design Patterns
NLJUG
 

La actualidad más candente (20)

Java intro
Java introJava intro
Java intro
 
Java for the Beginners
Java for the BeginnersJava for the Beginners
Java for the Beginners
 
Java
JavaJava
Java
 
java-corporate-training-institute-in-mumbai
java-corporate-training-institute-in-mumbaijava-corporate-training-institute-in-mumbai
java-corporate-training-institute-in-mumbai
 
Introducing object oriented programming (oop)
Introducing object oriented programming (oop)Introducing object oriented programming (oop)
Introducing object oriented programming (oop)
 
Introducing TypeScript
Introducing TypeScriptIntroducing TypeScript
Introducing TypeScript
 
Beginning Java for .NET developers
Beginning Java for .NET developersBeginning Java for .NET developers
Beginning Java for .NET developers
 
Real-World Scala Design Patterns
Real-World Scala Design PatternsReal-World Scala Design Patterns
Real-World Scala Design Patterns
 
[OOP - Lec 04,05] Basic Building Blocks of OOP
[OOP - Lec 04,05] Basic Building Blocks of OOP[OOP - Lec 04,05] Basic Building Blocks of OOP
[OOP - Lec 04,05] Basic Building Blocks of OOP
 
Type script - advanced usage and practices
Type script  - advanced usage and practicesType script  - advanced usage and practices
Type script - advanced usage and practices
 
Packages and Interfaces
Packages and InterfacesPackages and Interfaces
Packages and Interfaces
 
Typescript in 30mins
Typescript in 30mins Typescript in 30mins
Typescript in 30mins
 
[OOP - Lec 18] Static Data Member
[OOP - Lec 18] Static Data Member[OOP - Lec 18] Static Data Member
[OOP - Lec 18] Static Data Member
 
[OOP - Lec 19] Static Member Functions
[OOP - Lec 19] Static Member Functions[OOP - Lec 19] Static Member Functions
[OOP - Lec 19] Static Member Functions
 
Packages and interfaces
Packages and interfacesPackages and interfaces
Packages and interfaces
 
input/ output in java
input/ output  in javainput/ output  in java
input/ output in java
 
Unit3 part3-packages and interfaces
Unit3 part3-packages and interfacesUnit3 part3-packages and interfaces
Unit3 part3-packages and interfaces
 
32.java input-output
32.java input-output32.java input-output
32.java input-output
 
TypeScript: Basic Features and Compilation Guide
TypeScript: Basic Features and Compilation GuideTypeScript: Basic Features and Compilation Guide
TypeScript: Basic Features and Compilation Guide
 
Learning typescript
Learning typescriptLearning typescript
Learning typescript
 

Destacado

Destacado (16)

C Sharp Crash Course
C Sharp Crash CourseC Sharp Crash Course
C Sharp Crash Course
 
C sharp programming[1]
C sharp programming[1]C sharp programming[1]
C sharp programming[1]
 
C sharp part 001
C sharp part 001C sharp part 001
C sharp part 001
 
C sharp
C sharpC sharp
C sharp
 
Platform as a Service (PaaS) Providers
Platform as a Service (PaaS) ProvidersPlatform as a Service (PaaS) Providers
Platform as a Service (PaaS) Providers
 
ASP.NET Core MVC + Web API with Overview
ASP.NET Core MVC + Web API with OverviewASP.NET Core MVC + Web API with Overview
ASP.NET Core MVC + Web API with Overview
 
Capture the Cloud with Azure
Capture the Cloud with AzureCapture the Cloud with Azure
Capture the Cloud with Azure
 
ASP.NET Core 1.0 Overview
ASP.NET Core 1.0 OverviewASP.NET Core 1.0 Overview
ASP.NET Core 1.0 Overview
 
Azure: PaaS or IaaS
Azure: PaaS or IaaSAzure: PaaS or IaaS
Azure: PaaS or IaaS
 
Intro to Bot Framework v3
Intro to Bot Framework v3Intro to Bot Framework v3
Intro to Bot Framework v3
 
Java programming course for beginners
Java programming course for beginnersJava programming course for beginners
Java programming course for beginners
 
C Programming Language Tutorial for beginners - JavaTpoint
C Programming Language Tutorial for beginners - JavaTpointC Programming Language Tutorial for beginners - JavaTpoint
C Programming Language Tutorial for beginners - JavaTpoint
 
Intro. to prog. c++
Intro. to prog. c++Intro. to prog. c++
Intro. to prog. c++
 
LPW: Beginners Perl
LPW: Beginners PerlLPW: Beginners Perl
LPW: Beginners Perl
 
UX, ethnography and possibilities: for Libraries, Museums and Archives
UX, ethnography and possibilities: for Libraries, Museums and ArchivesUX, ethnography and possibilities: for Libraries, Museums and Archives
UX, ethnography and possibilities: for Libraries, Museums and Archives
 
How to Become a Thought Leader in Your Niche
How to Become a Thought Leader in Your NicheHow to Become a Thought Leader in Your Niche
How to Become a Thought Leader in Your Niche
 

Similar a C Sharp Course 101.5

Building Single-Page Web Appplications in dart - Devoxx France 2013
Building Single-Page Web Appplications in dart - Devoxx France 2013Building Single-Page Web Appplications in dart - Devoxx France 2013
Building Single-Page Web Appplications in dart - Devoxx France 2013
yohanbeschi
 
Java fundamentals
Java fundamentalsJava fundamentals
Java fundamentals
HCMUTE
 
gdscWorkShopJavascriptintroductions.pptx
gdscWorkShopJavascriptintroductions.pptxgdscWorkShopJavascriptintroductions.pptx
gdscWorkShopJavascriptintroductions.pptx
sandeshshahapur
 

Similar a C Sharp Course 101.5 (20)

Programming in java basics
Programming in java  basicsProgramming in java  basics
Programming in java basics
 
Java-Intro.pptx
Java-Intro.pptxJava-Intro.pptx
Java-Intro.pptx
 
Building Single-Page Web Appplications in dart - Devoxx France 2013
Building Single-Page Web Appplications in dart - Devoxx France 2013Building Single-Page Web Appplications in dart - Devoxx France 2013
Building Single-Page Web Appplications in dart - Devoxx France 2013
 
Angular2 for Beginners
Angular2 for BeginnersAngular2 for Beginners
Angular2 for Beginners
 
Angular2
Angular2Angular2
Angular2
 
Core java complete ppt(note)
Core java  complete  ppt(note)Core java  complete  ppt(note)
Core java complete ppt(note)
 
Static abstract members nelle interfacce di C# 11 e dintorni di .NET 7.pptx
Static abstract members nelle interfacce di C# 11 e dintorni di .NET 7.pptxStatic abstract members nelle interfacce di C# 11 e dintorni di .NET 7.pptx
Static abstract members nelle interfacce di C# 11 e dintorni di .NET 7.pptx
 
Ifi7184 lesson3
Ifi7184 lesson3Ifi7184 lesson3
Ifi7184 lesson3
 
Strong typing : adoption, adaptation and organisation
Strong typing : adoption, adaptation and organisationStrong typing : adoption, adaptation and organisation
Strong typing : adoption, adaptation and organisation
 
Beyond PITS, Functional Principles for Software Architecture
Beyond PITS, Functional Principles for Software ArchitectureBeyond PITS, Functional Principles for Software Architecture
Beyond PITS, Functional Principles for Software Architecture
 
Writing Galaxy Tools
Writing Galaxy ToolsWriting Galaxy Tools
Writing Galaxy Tools
 
The Swift Compiler and Standard Library
The Swift Compiler and Standard LibraryThe Swift Compiler and Standard Library
The Swift Compiler and Standard Library
 
Java fundamentals
Java fundamentalsJava fundamentals
Java fundamentals
 
Learning core java
Learning core javaLearning core java
Learning core java
 
gdscWorkShopJavascriptintroductions.pptx
gdscWorkShopJavascriptintroductions.pptxgdscWorkShopJavascriptintroductions.pptx
gdscWorkShopJavascriptintroductions.pptx
 
Csharp_mahesh
Csharp_maheshCsharp_mahesh
Csharp_mahesh
 
SenchaCon 2016: Modernizing the Ext JS Class System - Don Griffin
SenchaCon 2016: Modernizing the Ext JS Class System - Don GriffinSenchaCon 2016: Modernizing the Ext JS Class System - Don Griffin
SenchaCon 2016: Modernizing the Ext JS Class System - Don Griffin
 
Unit 1
Unit 1Unit 1
Unit 1
 
Typescript ppt
Typescript pptTypescript ppt
Typescript ppt
 
Introduction to c#
Introduction to c#Introduction to c#
Introduction to c#
 

Más de Shahed Chowdhuri

Más de Shahed Chowdhuri (20)

ASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web AppsASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web Apps
 
ASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web AppsASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web Apps
 
Cloud-Backed Mixed Reality: HoloLens & Azure Cognitive Services
Cloud-Backed Mixed Reality: HoloLens & Azure Cognitive ServicesCloud-Backed Mixed Reality: HoloLens & Azure Cognitive Services
Cloud-Backed Mixed Reality: HoloLens & Azure Cognitive Services
 
ASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web AppsASP.NET Core 2.1: The Future of Web Apps
ASP.NET Core 2.1: The Future of Web Apps
 
Cloud-Backed Mixed Reality with HoloLens & Azure Cognitive Services
Cloud-Backed Mixed Reality with HoloLens & Azure Cognitive ServicesCloud-Backed Mixed Reality with HoloLens & Azure Cognitive Services
Cloud-Backed Mixed Reality with HoloLens & Azure Cognitive Services
 
Microsoft Cognitive Services
Microsoft Cognitive ServicesMicrosoft Cognitive Services
Microsoft Cognitive Services
 
Intro to Bot Framework v3 with DB
Intro to Bot Framework v3 with DBIntro to Bot Framework v3 with DB
Intro to Bot Framework v3 with DB
 
Game On with Windows & Xbox One @ .NET Conf UY
Game On with Windows & Xbox One @ .NET Conf UYGame On with Windows & Xbox One @ .NET Conf UY
Game On with Windows & Xbox One @ .NET Conf UY
 
Game On with Windows & Xbox One!
Game On with Windows & Xbox One!Game On with Windows & Xbox One!
Game On with Windows & Xbox One!
 
Going Serverless with Azure Functions
Going Serverless with Azure FunctionsGoing Serverless with Azure Functions
Going Serverless with Azure Functions
 
ASP.NET Core 2.0: The Future of Web Apps
ASP.NET Core 2.0: The Future of Web AppsASP.NET Core 2.0: The Future of Web Apps
ASP.NET Core 2.0: The Future of Web Apps
 
Azure for Hackathons
Azure for HackathonsAzure for Hackathons
Azure for Hackathons
 
Intro to Xamarin: Cross-Platform Mobile Application Development
Intro to Xamarin: Cross-Platform Mobile Application DevelopmentIntro to Xamarin: Cross-Platform Mobile Application Development
Intro to Xamarin: Cross-Platform Mobile Application Development
 
Xbox One Dev Mode
Xbox One Dev ModeXbox One Dev Mode
Xbox One Dev Mode
 
What's New at Microsoft?
What's New at Microsoft?What's New at Microsoft?
What's New at Microsoft?
 
Capture the Cloud with Azure
Capture the Cloud with AzureCapture the Cloud with Azure
Capture the Cloud with Azure
 
Intro to HoloLens Development + Windows Mixed Reality
Intro to HoloLens Development + Windows Mixed RealityIntro to HoloLens Development + Windows Mixed Reality
Intro to HoloLens Development + Windows Mixed Reality
 
Intro to HoloLens Development
Intro to HoloLens DevelopmentIntro to HoloLens Development
Intro to HoloLens Development
 
Intro to Bot Framework
Intro to Bot FrameworkIntro to Bot Framework
Intro to Bot Framework
 
Xbox One Dev Mode
Xbox One Dev ModeXbox One Dev Mode
Xbox One Dev Mode
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 

C Sharp Course 101.5

Notas del editor

  1. Title Page: C# Crash Course 101.5 Beginner - Intermediate By Shahed Chowdhuri Senior Technical Evangelist Blog: WakeUpAndCode.com Twitter: @shahedC
  2. Agenda Introduction > Variables, Operators & Loops > Classes & Methods > Files & Exceptions Additional Topics Enumerators Extension Methods Generics Lists Dictionaries LINQ BONUS: Unit Tests
  3. My Background 1997 – present: Microsoft web/software development 2011: XNA games on XBLIG for Xbox 360 2D Math Panic Angry Zombie Ninja Cats 2012: Tools for XNA developers XBLIG Sales Data Analyzer (OnekSoftLabs.com) XNA Basic Starter Kit (CodePlex) Online: http://facebook.com/OnekSoftGames
  4. My Background (continued) 2013 Ninja Cat Runner on Win8, WP8, Web (Construct 2) Video Q&A with MS Tech Evangelist Frank La Vigne Founder/Admin of FB groups: Construct2, Xbox One & Unity Indie Devs Started Public Speaking in DC area and East Coast 2014 Public Speaking on Indie Game Development Joined Microsoft as a Sr. Technical Evangelist Gallant Glider on Win8, WP8, Web (Construct 2  Universal App) Video Q&A: http://youtu.be/lRjrQPvVOpo MVA: http://aka.ms/DevGames-Const2
  5. Official Xbox Magazine, March 2014, Page 65 "Shahed Chowdhuri's got a day job already, but in his spare time he crafts XBLIG games and tools for his fellow developers.” “With a math game and a pair of platformers under his belt, it's his XBLIG Sales Data Analyzer and XNA Basic Starter Kit that has his peers championing him."
  6. Intro to Visual Studio
  7. Agenda Introduction > Variables, Operators & Loops > Classes & Methods > Files & Exceptions Additional Topics
  8. Variables, Operators & Loops
  9. Classes & Methods
  10. Namespaces, Files & Exceptions
  11. Agenda Introduction > Variables, Operators & Loops > Classes & Methods > Files & Exceptions Additional Topics
  12. Additional Topics
  13. Enumerators
  14. Extension Methods
  15. Generics
  16. Lists & Dictionaries
  17. Dictionaries
  18. Linq
  19. Unit Test Example (using NUnit)
  20. Contact Web: OnekSoft.com Email: games@OnekSoft.com Twitter: @OnekSoftGames Microsoft email: shchowd@microsoft.com Personal Twitter: @shahedC R&D: OnekSoftLabs.com Dev Blog: WakeUpAndCode.com