This is an easy question I think :-)
Have a look at this program:
string v1 = "Hallo";
string v2 = "Hallo";
Console.WriteLine("Output" + v1 == v2);
This just outputs the following:
False
But if I write:
Console.WriteLine("Output" + true);
It outputs:
OutputTrue
I would think that "v1 == v2" evualuates to "true" and is therefore the same. But I am obviously wrong.
Can anyone explain this behaviour to me? I expected to get the same result (OutputTrue) in both cases. What is happening in the first case?