Collection Classes
- slide 14 : 36
Sample use of the Find operations in
List<T>
An illustration of
Find
,
FindAll
and
IndexOf
Linear search
Struct Point - used as actual List type parameter.
Sample uses of List.Find.
Output from the Find program.
Lessons learned
Use of an anonymous delegate together with
Find
is very useful
Find
,
FindLast
, and
FindAll
return elements from the list (not indexes)