Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Generics Type parameter - runtime

Thread Tools

Generics Type parameter - runtime

mhshpk mhshpk is offline
Junior Member
Join Date: Jul 2007
Posts: 6
Is it possible to change the type parameter of an ilist at runtime

public IList<T> ResultEO;
at runtime change to :
public IList<Plan> ResultEO;
public IList<PlanAssig> ResultEO;

where Plan,PlanAssig is a class which is set based on the paramter value,
also how do i declare T?I dont have any generic class T.
I am new to generics so not able to figure it out.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parameter Type/Size Property Values for VARCHAR(MAX) Stored Proc Parameter jcpc ASP .Net 2 01-26-2011 11:48 AM
generics depending on generics Soul VHDL 0 02-02-2009 09:14 AM
Generics: multiple interfaces as return parameter does not work martinus Java 3 11-20-2007 07:01 AM
Can't convert a generics list of objects into a generics list ofinterfaces Juergen Berchtel Java 1 05-20-2005 02:07 PM
Will the new Generics mechanism still use runtime casting? Dave Stallard Java 37 10-08-2003 05:23 PM