The text of this article is not in this database — only its details are. Read it on the old site: Generics in VB.NET
6 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Generics in VB.NET
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
EL WAHYUPosted Feb 20, 2010, 8:09 PM
HI MAY NAME EL. IT'S NICE TO READ YOUR ARTICLE. MY I KNOW HOW TO MANAGE GENERIC LIST IF THE TYPE IS IMAGE. FOR EXAMPLE I HAVE A CLASS FOR EMPLOYEE ENTITY, CONTAIN PROPERTY NAME AND PHOTO. THE PHOTO USES IMAGE AS THE DATA TYPE. MY QUESTION IS HOW TO LOAD/SHOW THE PHOTO THROUGH LIST. THANKS IN ADVANCE.
Joseph German OcenaPosted Jun 5, 2009, 4:48 AM
How do you create a generic list if you only know the type of the object during runtime? Example: I have a collection class BusinessObjectCollection(O<wbr>f T as someInterface) ' VB syntax Now, at run time I can get a type for collection items (and this type inherits from proper interface): Dim businessClassType As Type = controller.GetBusinessClas<wbr>sType(clas<wbr>sNameStrin<wbr>g) However, when I'm trying to create a collection like: Dim col As New BusinessObjectCollection(O<wbr>f businessClassType) compiler tells me that businessClassType is not defined.
akshay yelnePosted Apr 7, 2009, 11:27 AM
ss
Mahesh ChandeditedPosted Sep 19, 2008, 7:22 AMEdited Sep 19, 2008, 7:23 AM
test comment