G
Guest
Has anyone else noticed a change in this function with .Net 2.0?
The help says it uses the Object.Equals method to do a linear search of the
ArrayList. In .Net 1.1, it used the Object.Equals override of the argument
to the method, in .Net 2.0 it uses the Object.Equals override of the elements
of the array. It's a subtle change but was more useful before. As it stands
now, one override of Object.Equals is used for all searches whereas before
you could create a new search object if you wanted to search on a different
parameter. It's simliar to what we used to do with predicate
objects/functions in STL.
The help says it uses the Object.Equals method to do a linear search of the
ArrayList. In .Net 1.1, it used the Object.Equals override of the argument
to the method, in .Net 2.0 it uses the Object.Equals override of the elements
of the array. It's a subtle change but was more useful before. As it stands
now, one override of Object.Equals is used for all searches whereas before
you could create a new search object if you wanted to search on a different
parameter. It's simliar to what we used to do with predicate
objects/functions in STL.