What is a boolean? (C#)

Channel:
Subscribers:
671
Published on ● Video Link: https://www.youtube.com/watch?v=Bbyc7-aiwRk



Duration: 0:00
7 views
1


When referring to programming, in the most simplest terms: a boolean is a value type at which can store two states, true or false.

00:00 - Introduction
00:30 - What is a boolean?
00:45 - Simple use of booleans & expressions
01:55 - Parsing a string that contains a boolean (C#)
02:59 - Boolean literals vs expressions
03:32 - Conditional operator in C#
04:44 - && (AND) and || (OR) operators
05:37 - String comparison expression
06:20 - != (NOT) operator for negation
06:50 - Implicit boolean to string conversion (C#)
07:23 - LINQ expressions with lists
09:18 - Booleans are value types, not references!
10:05 - Triple value bools (nullable bools)
11:08 - Outro

For more information about booleans, you can read about them on the C# documentation
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/bool