| Introduction to Anonymous Delegates |
|
|
After reviewing how to create and use regular delegates, this video explains the concept of creating Anonymous Delegates, when you to use them and when not to, and explains the concept of closure for retrieving the state and scope of the anonymous delegate at instantiation for use upon its invocation. (Anonymous Delegates are not available in Visual Basic 8.x or earlier.)
|
| Introduction to Generics |
|
|
Generics allow you to create flexible data structures that are strongly typed. This video compares the System.Collections.ArrayList class versus its generic replacement, the System.Collections.Generic.List<T>, explaining exactly why generics are the prefered way to add stability to your collections by catching situations where objects of the wrong type are being added to your collections at compile time.
|
| Using List<T> |
|
|
This video demonstrates how to use the Find, FindAll, FindLast, TrueForAll and other methods of the List<T> collection. It demonstrates how to satisfy each methods' need for a delegate method to perform the appropriate action or comparrison, etc. It also demonstrates how to use anonymous delegates in place of the regular delegate in several examples.
|