KMZ_state,
An IList implementation should honor the IComparable interface
implementation that an object has on it. However, it seems like you might
have other criteria for searching your list which might vary. In this case,
I would get an array of items from the IList implementation, and call the
FindAll method, passing a delegate which will perfrom the comparison
criteria.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"KMZ_state" <KM******@discussions.microsoft.comwrote in message
news:5E**********************************@microsof t.com...
>I have the following:
User bllCANs = new User();
IList CANlist = bllCANs.GetListofUsers();
This will return a set of data with about 9 fields per row. I want to
search through this IList to find a particular value. For example, one of
the fields is LastName. I want to search to see if a particular last name
is
in this IList. I was trying IndexOf, but I just can't get the exact
syntax
of exactly how to call it. Any suggestions?