Wun Code
C#

C#‎ Basics

C#‎ is the language behind Unity games and .NET apps. Every variable has a fixed type, programs are built from classes, and it comes with ready-made tools for most of what you need.

Start the trackFree, no sign-up needed

What you'll learn

  • Your first programThe Main method, the Console class and string interpolation
  • Types and conversionsThe int, double and decimal types, and integer division
  • ConditionalsBranching with if, switch and the ternary operator
  • LoopsRepeating with for, while and foreach
  • Methods with ref and outCopies versus originals, and the TryParse pattern
  • Arrays and listsA fixed-size array and a List<T> that grows
  • Strings and their methodsSplit, Replace and the StringBuilder class
  • Classes and propertiesConstructors, private set and encapsulation
  • Inheritance and interfacesThe abstract, override and interface keywords
  • Dictionaries and LINQCounting with Dictionary and querying with LINQ

Track contents

10 lessons, 2.5 hours in total
  1. 1Your first programC#The Main method, the Console class and string interpolation
  2. 2Types and conversionsC#The int, double and decimal types, and integer division
  3. 3ConditionalsC#Branching with if, switch and the ternary operator
  4. 4LoopsC#Repeating with for, while and foreach
  5. 5Methods with ref and outC#Copies versus originals, and the TryParse pattern
  6. 6Arrays and listsC#A fixed-size array and a List<T> that grows
  7. 7Strings and their methodsC#Split, Replace and the StringBuilder class
  8. 8Classes and propertiesC#Constructors, private set and encapsulation
  9. 9Inheritance and interfacesC#The abstract, override and interface keywords
  10. 10Dictionaries and LINQC#Counting with Dictionary and querying with LINQ