Microsoft
Add decision logic to your code in C#
Learn to branch your code's execution path by evaluating Boolean expressions.
- Microsoft Learn
- 45 minutes
- Self-paced
- Free course
- Free badge
- Beginner
Free online
Learn C# online: university courses, full YouTube courses, and courses with free certificates, from the IITs, MIT, Harvard, Google, Microsoft and more.
383 courses
More in Programming
Microsoft
Learn to branch your code's execution path by evaluating Boolean expressions.
Microsoft
Learn how to handle date and time effectively in C# applications.
Microsoft
Demonstrate your ability to analyze, create, and use different methods to develop a console minigame in .NET with GitHub Codespaces and GitHub Copilot.
Microsoft
This module guides you through the code verification process for a C# console application. Hands-on activities provide experience identifying logic issues, debugging the application, and implementing exception handling. Step-by-step instructions are provided.
Microsoft
Learn how to serialize and deserialize JavaScript Object Notation (JSON) strings using the JsonSerializer class, the JsonSerializerOptions class, and Data Transfer Objects.
Microsoft
Learn how to add a database to a minimal API application.
Microsoft
Choose the correct data type for your code from several basic types used in C#.
Microsoft
Create consistent user interfaces across different devices by using StackLayout and Grid.
Microsoft
Use methods with parameters and return values to develop the features of a console mini-game.
Microsoft
Explore basic methods in C# to format alphanumeric data.
Microsoft
Learn to develop an application that will calculate and display results based on given data.
Microsoft
Learn coding practices to help prevent the occurrence of NullReferenceException.
Microsoft
Discover how events facilitate communication between objects in C#, and how their integration with delegates creates robust, decoupled code.
Microsoft
Use functionality in the .NET Class Library by calling methods that return values, accept input parameters, and more.
Microsoft
Learn how to create a class hierarchy using base and derived classes and how to hide or override members of a derived class by using `new`, `virtual`, `abstract`, and `override` keywords.
Microsoft
Get started by writing code examples to learn the basics of the C# syntax.
Microsoft
Learn to create array variables and iterate through elements of the array.
Microsoft
This module explores the use of exceptions and the exception handling process in C# console applications. Hands-on activities provide experience implementing exception handling patterns for various coding scenarios.
Microsoft
Create a UI with data binding. Your UI automatically updates based on the latest data, while the data updates in response to changes in the UI.