Applying It |
Try to complete the following exercise by yourself.
Independent Exercise
Modify the example you used for namespaces to export an enumeration and a function that transforms a string to the enumerated value. For example, use CardSuit enumeration containing the four suits (spades, hearts, diamonds, and clubs), and create a function that will accept a String parameter (like heart) and return the enumerated value that corresponds.
Get Visual Basic® .NET by Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.