May 2010
Intermediate to advanced
1272 pages
61h 18m
English
A delegate is defined via the Delegate keyword followed by the method signature it needs to implement. Such a signature can be referred to as a Sub or as a Function and may or may not receive arguments. The following code defines a delegate that can handle reference to methods able to check an email address, providing the same signature of the delegate:
![]()
Notice that IsValidMailAddress is a type and not a method as the syntax might imply. emailAddress is a variable containing the email address ...
Read now
Unlock full access