Getting Resources by Name in Code

There are situations in which you need to access resources by name in code. This can be accomplished via the Reflection, which is a topic discussed in Chapter 47. The following code provides an example:

image

In this case the method returns resources of type String but you can implement methods that return a different type.

Get Visual Basic® 2010 Unleashed 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.