C # List <MyObj> Delete Method
3 answers
Yes, it uses a method Equals(...) MyObjthat, by default, refers to equality of links if the method has not been redefined.
In particular, it uses EqualityComparer<T>.Default, which, in turn, looks if it MyObjimplements IEquatable<T>. If not, it will use an overload myObj.Equals(object obj)that causes Object.ReferenceEquals(...), if not overridden.
+4
See http://msdn.microsoft.com/en-us/library/cd666k3e.aspx
, EqualityComparer.Default T, .
; O (n) n - .
0