Thread
:
Difference between double and Double in C#
View Single Post
Jan 18th, 2007, 6:24 AM
#
13
Arevos
Programming Guru
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power:
5
In C#, this:
(
Toggle Plain Text
)
x == y
x == y
Is loosely equivalent to this in Java:
(
Toggle Plain Text
)
(x == null && y == null) || (x != null && x.equals(y))
(x == null && y == null) || (x != null && x.equals(y))
Going in the opposite direction, this in Java:
(
Toggle Plain Text
)
x == y
x == y
Is equivalent to this in C#:
(
Toggle Plain Text
)
object.ReferenceEquals(x, y)
object.ReferenceEquals(x, y)
Arevos
View Public Profile
Visit Arevos's homepage!
Find More Posts by Arevos