Method Equals : Bool ( lhs:T, rhs:T ) Override?

Monkey Forums/Monkey Programming/Method Equals : Bool ( lhs:T, rhs:T ) Override?

PixelPiledriver(Posted 2012) [#1]
I found this in the documentation for List.

Method Equals : Bool ( lhs:T, rhs:T )

This method is used by the Contains and RemoveEach methods to determine element equality.
By default, this method compares lhs and rhs using the '=' operator. Extending classes may override this method to provide their own equality test.

This is the part that interests me!!!
"Extending classes may override this method to provide their own equality test."

How can I do this?


ziggy(Posted 2012) [#2]
It's easy, just create a method that returns True if lhs and rhs are the same, and false if they're not.