C# is one of the most common used programming languages used today. It can be used to build a large variety of applications: web, mobile, desktop and even games.
To use C# to build applications, you will need .NET. Think of it as a Swiss knife for building applications. It includes a lot of functionality out of the box and gives your program super powers.
Since C#/.NET is a large ecosystem, we will start lightly and introduce you to the language by writing simple console programs. Our next and final target will be building a simple Web API using ASP.NET Core - a framework used to build web applications.
After finishing this masterclass you will have basic understanding of C# and .NET. You will also understand how to build a basic ASP.NET Core application.
📚 The curriculum includes the following topics:
- Introduction to C# and .NET
- Connecting to database to change and retrieve data
- Creating and running a simple web application using ASP.NET Core
The masterclass follows the flipped classroom approach. This means that students are learning about the topic at home before coming to the classroom. In the classroom we will practice and discuss the topics in more detail.
Homework will be included in some sessions. While it isn’t mandatory, it is still highly recommended. After all, practice makes perfect.
You are required to have a laptop or a personal computer for writing and running code.
🎉 We are excited to have you onboard. Start by installing .NET on your machine:
- Go to https://dotnet.microsoft.com/en-us/download
- Click on download .NET SDK x64 button
- Start installation
- Verify that .NET has been installed by running
dotnet
command in console. You should see this result in the console
- Install C# extension for Visual Studio Code
Before and during the masterclass we recommend you take some time to go through the following materials (1 - 2 hrs of watching & reading excluding Microsoft Learn).
- What is .NET? What is .NET? What's C#? (19 minutes)
- How did we get from .NET Framework to just .NET? (2:19 min)
- intro to .NET - stop reading after
SDK and runtimes
part (10 min read) - What is C# (1:23 min)
- Hello world in C# (4:39 min) / Microsoft Learn link
- .NET built-in types
- Writing first variable (strings) (8:40 min)
- Numbers (4:43 min)
- Decimals (5:43 min)
- Branches (if/else) on Microsoft Learn
- C# types
Learning new stuff can be exciting, but a bit overwhelming. Take your time when going through the materials. Experiment with the programs, change them a bit and have fun! Feel free to reach out to mentors on Slack on #dotnet-masterclass-2022 channel.