Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
8 Points
10 Posts
Feb 29, 2012 11:09 AM|LINK
A value in myListingsUpdatedIn24Hrs was equal to myLS. So , Yes it is.
But the explanation that I got was:
The
ListingSyncItem
Equals
List<T>.Remove
Simply overriding
GetHashCode
ListNumber
Status
For
RemoveAll
ListingSyncItem.Equals
desi_develop...
Member
8 Points
10 Posts
Re: List<Type> Remove
Feb 29, 2012 11:09 AM|LINK
A value in myListingsUpdatedIn24Hrs was equal to myLS. So , Yes it is.
But the explanation that I got was:
<div class="post-text">The
type doesn't override , so doesn't know that the item to remove is "equal" to the item in your list.Simply overriding
and appropriately (to check for the equality of and , presumably, and build a hash code based on those) should fix the problem.For
, you're providing a predicate. That doesn't use , which is why it's working. </div>