Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C# Programming Question

Name: Anonymous 2010-10-21 14:24

object a = 10;
object b = 10;
object c = "10";
object d = "10";

Console.WriteLine(a == b); // false
Console.WriteLine(c == d); // true

why does the "Console.WriteLine(a == b)" outputs "false"?

Name: Anonymous 2010-10-21 17:34

Oh look, another "object oriented" language, where actually, not everything is an object.
It's a shame you can't have operator== like in my favourite language, C++.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List