Trivia: Equality of objects and strings
A small trivia question for a change; some of my colleagues and friends may already have heard this from me.
Take a look at the following snippet of C# code:
T x1 = V1;
T x2 = V2;
Console.WriteLine(x1 == x2);
Console.WriteLine(x1.ToString() == x2.ToString());
In the code, you need to fill in three missing parts: Name of a type T, and [...]
June 30, 2009
Tags: trivia Posted in: .NET
2 Comments
