Any ideas would be appreciated.
Printable View
Any ideas would be appreciated.
Well.. there isnt any difference actually... its just its relly easy to use == instead of Function.Equals
Thats it!
Quote:
Originally Posted by Alexei Kubarev
Being smart....
one is an operator and one is a method........
To expand on what Brad has said :
I believe (and Brad can confirm) the 'Equals' is an overrided function which is used by the operator '==' when necessary.
So one is an operator and the other is a method, but the operator uses the method internally to determine the result.
Darwen.
Ehh... okej... i admit that it wasnt the smartes answer... :blush:
Hehe... But it still works if you write Function.Equals == somevalue..
I think :S not really sure about that... :S
Yes I agree that Equals is an overriden function and == operator calls it.
Actually the equals provide general view as equals is defined in object class and the overriding classes provide their own functionality for this function.