I read some properties from an xml file, amongst which is a string that refers to an llblgen object for example 'article'. For now I have set up a rather long
Select Case myString
Case "article"
return New ArticleEntity()
Etc. which is getting rather ugly as it gets longer and longer ;). Is there a better way to do this ?
(the above is vb.net, but c# examples are fine as well)