Generics Type parameter - runtime

Discussion in '.NET' started by mhshpk, Jul 31, 2007.

  1. mhshpk

    mhshpk

    Joined:
    Jul 12, 2007
    Messages:
    6
    Likes Received:
    0
    Is it possible to change the type parameter of an ilist at runtime

    eg:
    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.
     
    mhshpk, Jul 31, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Juergen Berchtel
    Replies:
    1
    Views:
    6,521
    John C. Bollinger
    May 20, 2005
  2. Ragnar
    Replies:
    2
    Views:
    636
    tom_usenet
    Sep 4, 2003
  3. Robert Mark Bram
    Replies:
    0
    Views:
    847
    Robert Mark Bram
    Feb 4, 2007
  4. Soul
    Replies:
    0
    Views:
    721
  5. Luca Forlizzi
    Replies:
    4
    Views:
    612
    Luca Forlizzi
    Nov 14, 2010
  6. jcpc
    Replies:
    2
    Views:
    1,926
  7. me2faster@excite.com
    Replies:
    1
    Views:
    465
    Ryan Davis
    May 6, 2005
  8. Tricky
    Replies:
    1
    Views:
    938
    JimLewis
    Feb 10, 2012
Loading...