Read Program.cs first, then run it: dotnet run --project reps/06. It prints:
1: True
2: True
3: True
4: False
5: False
6: True
7: False
8: True
Lines 2, 3, 5 and 7 are the ones worth explaining.
Read Program.cs first, then run it: dotnet run --project reps/06. It prints:
1: True
2: True
3: True
4: False
5: False
6: True
7: False
8: True
Lines 2, 3, 5 and 7 are the ones worth explaining.
== did the compiler pick, and why did the declared type decide it rather than the value's type?
if (a == b) where both are declared object. What do you need to know before you can say whether that line is correct?