SlideShare a Scribd company logo
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 1
Introduction to C#
Lee Englestone, Developer Relations Lead
Audience: Women In Software Engineering (WISE)
Date: October 2023
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 2
Contents
2. What?
What is C#?
3. How?
How does it work?
4. Why?
Why use C#?
5. Try it!
Try it for yourself!
6. Summary
More information
and next steps
1. Introduction
Hi there 👋
3
About Me
VisualStudioTips.co.uk
Start-Coding.com
HackathonTips.com
GoodBusinessBooks.com
Many, many more..
Follow me on Engage!
Lee Englestone, Grp Mgr
Developer Relations Lead
20+ years Software Developer
4x Microsoft MVP
MSc Entrepreneurship Management & Innovation
4
EmTech &
Open Innovation
OCTO
(Office of the CTO)
EmTech
(Emerging Technology)
Open Innovation
Developer Relations
GSA (Global Solution Area)
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 5
What is C#?
• Programming language
• Free & easy (and tooling)
• Cross platform
• Wide range of uses https://try.dot.net/
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 6
.NET Framework
• Programming Languages
• Class Libraries
• Runtime
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 7
C# Everywhere
Gaming
Desktop/
Laptops
applications
Web & Cloud
IoT
Tablets
iOS & Android phones
Virtual Reality
Augmented Reality
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 8
Popularity
C# is a very popular programming language
https://survey.stackoverflow.co/2023/#technology
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 9
Example Application Types
Console Application
Simple, powerful, basic UI & Input
Web Application
Typical website
Windows Application
Think Calculator app
Windows Service
No UI, runs in the background
Azure Cloud Function
Simple scalable app in the cloud
Web API
Web Application Programming
Interface – A callable web service
Mobile App
To run on mobile phones / tables
Game
A 2D or 3D game
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 10
My example side projects that use C#
XamarinARKit.com
11
A look at C#
• Variables & data types
• Logic control
• Building blocks
• Namespaces
You can follow along on try.dot.net
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 12
Variables
Storing temporary items of information
Can use built-in data types or user defined data types
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 13
String
Declaration, manipulation and concatenation
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 14
Boolean
true or false
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 15
Numbers
Various min / max sizes and precision
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 16
Numbers Continued
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 17
DateTime
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 18
Control statements
Don’t always want..
Do A, then B, then C, then D
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 19
Collections, Lists, Arrays etc
Storing collections of variables in a variable
Array List Dictionary
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 20
Loops & Iterations
Doing things multiple times
foreach
for for while do do while
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 21
User defined types
Define your own types by combining existing types
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 22
Properties and Methods
Both built in types and user defined types
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 23
Common Namespaces
System
System.Math
System.Text
System.File
System.Globalisation
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 24
Exercise: How many Tuesdays are there in 2023?
• Start with a date on 1st of January 2023
• Have an int counter
• Loop until 2024
• Each day check if day is a Tuesday
• If so, increment a counter
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 25
Exercise: What are the dates of all the Tuesdays in 2023?
• Same, but add the date to a collection
• Iterate through collection and display them
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 26
Tooling
Visual Studio
https://visualstudio.microsoft.com/#vs-section
Visual Studio Code
https://visualstudio.microsoft.com/#vscode-section
LinqPad
https://www.linqpad.net/
Rider
https://www.jetbrains.com/rider/
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 27
In Browser Tutorial
https://dotnet.microsoft.com/en-us/learn/dotnet/in-browser-tutorial/1
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 28
Try it out yourself
Try .NET page
https://dotnet.microsoft.com/en-us/platform/try-dotnet
In browser tutorial
https://dotnet.microsoft.com/en-us/learn/dotnet/in-browser-tutorial/1
Try anything
https://try.dot.net/
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 29
Summary
2. What?
What is C#?
3. How?
How does it work?
4. Why?
Why use C#?
5. Try it!
Try it for yourself!
6. Summary
More information
and next steps
1. Introduction
Hi there 👋
©2022 Avanade Inc. All Rights Reserved. <Highly Confidential>
Questions?

More Related Content

PPTX
Introduction to ThousandEyes
PPTX
Optimizing and Troubleshooting Digital Experience for a Hybrid Workforce
PPTX
EMEA Optimizing and Troubleshooting Digital Experience for a Hybrid Workforce
PPTX
Optimizing and Troubleshooting Digital Experience for a Hybrid Workforce
PPTX
How To Operationalize ThousandEyes and Webex Into Your Escalation Workflows
PPTX
Getting Started with ThousandEyes Proof of Concepts
PPTX
Getting Started with ThousandEyes Proof of Concepts
PPTX
How to Operationalize ThousandEyes and Webex Into Your Escalation Workflows
Introduction to ThousandEyes
Optimizing and Troubleshooting Digital Experience for a Hybrid Workforce
EMEA Optimizing and Troubleshooting Digital Experience for a Hybrid Workforce
Optimizing and Troubleshooting Digital Experience for a Hybrid Workforce
How To Operationalize ThousandEyes and Webex Into Your Escalation Workflows
Getting Started with ThousandEyes Proof of Concepts
Getting Started with ThousandEyes Proof of Concepts
How to Operationalize ThousandEyes and Webex Into Your Escalation Workflows

Similar to Introduction to C# (20)

PDF
Agile Chennai 2023 | AI-Powered Agile : Transforming How We Deliver Extraordi...
PPTX
Getting Started With ThousandEyes Proof of Concepts: End User Digital Experience
PPTX
Introduction to ThousandEyes
PDF
Realise True Business Value .pdf
PPTX
Getting Demo & POV Ready
DOC
Chandrasekharmeruva
PDF
Commit to the Cause, Push for Change: Contributing to Call for Code Open Sour...
PDF
Building Blocks of Secure Development: How to Make Open Source Work for You
PDF
Full Spectrum Engineering – The New Full-stack
PDF
Go for Operations
PDF
Infrastructure as Code in Large Scale Organizations
PPTX
Realize True Business Value With ThousandEyes
PDF
The LCG Digital Transformation Maturity Model
PPTX
Introduction to ThousandEyes
PPTX
Docker Bday #5, SF Edition: Introduction to Docker
PPTX
roomos_webinar_280923_v2.pptx
PDF
Docker Birthday #5 Meetup Cluj - Presentation
PPTX
Tridens DevOps
PDF
The As, Bs, and Four Cs of Testing Cloud-Native Applications
PPTX
Azure Functions
Agile Chennai 2023 | AI-Powered Agile : Transforming How We Deliver Extraordi...
Getting Started With ThousandEyes Proof of Concepts: End User Digital Experience
Introduction to ThousandEyes
Realise True Business Value .pdf
Getting Demo & POV Ready
Chandrasekharmeruva
Commit to the Cause, Push for Change: Contributing to Call for Code Open Sour...
Building Blocks of Secure Development: How to Make Open Source Work for You
Full Spectrum Engineering – The New Full-stack
Go for Operations
Infrastructure as Code in Large Scale Organizations
Realize True Business Value With ThousandEyes
The LCG Digital Transformation Maturity Model
Introduction to ThousandEyes
Docker Bday #5, SF Edition: Introduction to Docker
roomos_webinar_280923_v2.pptx
Docker Birthday #5 Meetup Cluj - Presentation
Tridens DevOps
The As, Bs, and Four Cs of Testing Cloud-Native Applications
Azure Functions
Ad

More from Lee Englestone (12)

PPTX
Augmented Reality On iOS With ARKit Xamarin and C#
PPTX
Reinventing Education Hackathon - LeARn
PDF
.NET Foundation website suggestions for improvement
PPTX
25 Tips for Visual Studio
PPTX
Tweet From Every Country Barcamp Manchester
PPTX
Organisational Learning
PPTX
Lincoln Hack 2018
PPTX
MVC Training Part 2
PPTX
MVC Training Part 1
PDF
Familee bootstrapped-biz
PPTX
Unit Tests And Automated Testing
PPTX
Visual Studio 2010 and ASP.Net 4
Augmented Reality On iOS With ARKit Xamarin and C#
Reinventing Education Hackathon - LeARn
.NET Foundation website suggestions for improvement
25 Tips for Visual Studio
Tweet From Every Country Barcamp Manchester
Organisational Learning
Lincoln Hack 2018
MVC Training Part 2
MVC Training Part 1
Familee bootstrapped-biz
Unit Tests And Automated Testing
Visual Studio 2010 and ASP.Net 4
Ad

Recently uploaded (20)

PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
ai tools demonstartion for schools and inter college
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Understanding Forklifts - TECH EHS Solution
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
System and Network Administraation Chapter 3
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Digital Strategies for Manufacturing Companies
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
Essential Infomation Tech presentation.pptx
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
How Creative Agencies Leverage Project Management Software.pdf
ai tools demonstartion for schools and inter college
Which alternative to Crystal Reports is best for small or large businesses.pdf
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Understanding Forklifts - TECH EHS Solution
wealthsignaloriginal-com-DS-text-... (1).pdf
2025 Textile ERP Trends: SAP, Odoo & Oracle
System and Network Administraation Chapter 3
Navsoft: AI-Powered Business Solutions & Custom Software Development
Design an Analysis of Algorithms II-SECS-1021-03
Digital Strategies for Manufacturing Companies
Softaken Excel to vCard Converter Software.pdf
Wondershare Filmora 15 Crack With Activation Key [2025
Reimagine Home Health with the Power of Agentic AI​
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Odoo Companies in India – Driving Business Transformation.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Essential Infomation Tech presentation.pptx
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf

Introduction to C#

  • 1. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 1 Introduction to C# Lee Englestone, Developer Relations Lead Audience: Women In Software Engineering (WISE) Date: October 2023
  • 2. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 2 Contents 2. What? What is C#? 3. How? How does it work? 4. Why? Why use C#? 5. Try it! Try it for yourself! 6. Summary More information and next steps 1. Introduction Hi there 👋
  • 3. 3 About Me VisualStudioTips.co.uk Start-Coding.com HackathonTips.com GoodBusinessBooks.com Many, many more.. Follow me on Engage! Lee Englestone, Grp Mgr Developer Relations Lead 20+ years Software Developer 4x Microsoft MVP MSc Entrepreneurship Management & Innovation
  • 4. 4 EmTech & Open Innovation OCTO (Office of the CTO) EmTech (Emerging Technology) Open Innovation Developer Relations GSA (Global Solution Area)
  • 5. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 5 What is C#? • Programming language • Free & easy (and tooling) • Cross platform • Wide range of uses https://try.dot.net/
  • 6. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 6 .NET Framework • Programming Languages • Class Libraries • Runtime
  • 7. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 7 C# Everywhere Gaming Desktop/ Laptops applications Web & Cloud IoT Tablets iOS & Android phones Virtual Reality Augmented Reality
  • 8. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 8 Popularity C# is a very popular programming language https://survey.stackoverflow.co/2023/#technology
  • 9. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 9 Example Application Types Console Application Simple, powerful, basic UI & Input Web Application Typical website Windows Application Think Calculator app Windows Service No UI, runs in the background Azure Cloud Function Simple scalable app in the cloud Web API Web Application Programming Interface – A callable web service Mobile App To run on mobile phones / tables Game A 2D or 3D game
  • 10. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 10 My example side projects that use C# XamarinARKit.com
  • 11. 11 A look at C# • Variables & data types • Logic control • Building blocks • Namespaces You can follow along on try.dot.net
  • 12. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 12 Variables Storing temporary items of information Can use built-in data types or user defined data types
  • 13. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 13 String Declaration, manipulation and concatenation
  • 14. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 14 Boolean true or false
  • 15. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 15 Numbers Various min / max sizes and precision
  • 16. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 16 Numbers Continued
  • 17. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 17 DateTime
  • 18. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 18 Control statements Don’t always want.. Do A, then B, then C, then D
  • 19. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 19 Collections, Lists, Arrays etc Storing collections of variables in a variable Array List Dictionary
  • 20. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 20 Loops & Iterations Doing things multiple times foreach for for while do do while
  • 21. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 21 User defined types Define your own types by combining existing types
  • 22. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 22 Properties and Methods Both built in types and user defined types
  • 23. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 23 Common Namespaces System System.Math System.Text System.File System.Globalisation
  • 24. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 24 Exercise: How many Tuesdays are there in 2023? • Start with a date on 1st of January 2023 • Have an int counter • Loop until 2024 • Each day check if day is a Tuesday • If so, increment a counter
  • 25. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 25 Exercise: What are the dates of all the Tuesdays in 2023? • Same, but add the date to a collection • Iterate through collection and display them
  • 26. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 26 Tooling Visual Studio https://visualstudio.microsoft.com/#vs-section Visual Studio Code https://visualstudio.microsoft.com/#vscode-section LinqPad https://www.linqpad.net/ Rider https://www.jetbrains.com/rider/
  • 27. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 27 In Browser Tutorial https://dotnet.microsoft.com/en-us/learn/dotnet/in-browser-tutorial/1
  • 28. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 28 Try it out yourself Try .NET page https://dotnet.microsoft.com/en-us/platform/try-dotnet In browser tutorial https://dotnet.microsoft.com/en-us/learn/dotnet/in-browser-tutorial/1 Try anything https://try.dot.net/
  • 29. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> 29 Summary 2. What? What is C#? 3. How? How does it work? 4. Why? Why use C#? 5. Try it! Try it for yourself! 6. Summary More information and next steps 1. Introduction Hi there 👋
  • 30. ©2022 Avanade Inc. All Rights Reserved. <Highly Confidential> Questions?

Editor's Notes

  • #3: A number of things not covered
  • #8: Websites Cloud services Games Machine Learning & AI VR & AR Windows Applications Mobile Apps IOT
  • #9: Stack Overflow survey
  • #10: Console Application Web Application Windows Application Windows Service Cloud Function Mobile App
  • #14: string mySentence = "Hello World"; Console.WriteLine(mySentence); Console.WriteLine(mySentence.Length); Console.WriteLine(mySentence.ToUpper()); Console.WriteLine(mySentence.ToLower()); Console.WriteLine(mySentence.Replace(" ", "-")); Console.WriteLine(mySentence + " it's sunny outside");
  • #15: string mySentence = "Hello World"; Console.WriteLine(mySentence); Console.WriteLine(mySentence.Length); Console.WriteLine(mySentence.ToUpper()); Console.WriteLine(mySentence.ToLower()); Console.WriteLine(mySentence.Replace(" ", "-")); Console.WriteLine(mySentence + " it's sunny outside");
  • #17: int number1 = 10; int number2 = 25; int number3 = number1 + number2; Console.WriteLine(number3); int whole1 = 13; int whole2 = 2; int whole3 = whole1/whole2; Console.WriteLine(whole3); Console.WriteLine(int.MaxValue); Console.WriteLine(long.MaxValue); nine quintillion two hundred twenty-three quadrillion three hundred seventy-two trillion thirty-six billion eight hundred fifty-four million seven hundred seventy-five thousand eight hundred seven
  • #18: DateTime date1 = new DateTime(); DateTime birthday = new DateTime(1982, 11, 8, 0, 0,0); DateTime now = DateTime.Now; DateTime thisTimeTomorrow = DateTime.Now.AddDays(1); Console.WriteLine(date1); Console.WriteLine(birthday); Console.WriteLine(now); Console.WriteLine(thisTimeTomorrow); Console.WriteLine(birthday.ToString("dd MMMM yyyy"));
  • #19: var today = DateTime.Now; Console.WriteLine(today.ToString("ddd dd MM yyyy")); if(today.DayOfWeek == DayOfWeek.Saturday || today.DayOfWeek == DayOfWeek.Sunday) {     Console.WriteLine("It's the weekend!"); } else {     Console.WriteLine("It's NOT the weekend"); }
  • #20: string[] names = new string[4]; names[0] = "Marie"; names[1] = "Amber"; names[2] = "Farooq"; names[3] = "Sam"; Console.WriteLine(names.Length); Console.WriteLine(names[1]); List<int> ages = new List<int>(); ages.Add(30); ages.Add(50); ages.Add(32); ages.Add(48); Console.WriteLine(ages.Count()); Console.WriteLine(ages[1]); Console.WriteLine(ages.Sum()); Console.WriteLine(ages.Average());
  • #30: A number of things not covered