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- 1Your first programC#The Main method, the Console class and string interpolation10 min
- 2Types and conversionsC#The int, double and decimal types, and integer division12 min
- 3ConditionalsC#Branching with if, switch and the ternary operator13 min
- 4LoopsC#Repeating with for, while and foreach15 min
- 5Methods with ref and outC#Copies versus originals, and the TryParse pattern13 min
- 6Arrays and listsC#A fixed-size array and a List<T> that grows14 min
- 7Strings and their methodsC#Split, Replace and the StringBuilder class15 min
- 8Classes and propertiesC#Constructors, private set and encapsulation14 min
- 9Inheritance and interfacesC#The abstract, override and interface keywords16 min
- 10Dictionaries and LINQC#Counting with Dictionary and querying with LINQ15 min