Pages

Men

rh

7/31/2013

What is the difference between a.Equals(b) and a == b?

a=b is used for assigning the values (rather then comparison) and a==b is for comparison.

Or

a == b is used to compare the references of two objects

a.Equals(b) is used to compare two objects
Or

a equals b -> copies contents of b to a
a == b -> checks if a is equal to b

No comments :

Post a Comment