a=b is used for assigning the values (rather then comparison) and a==b is for comparison.
Or
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