Generics Type parameter - runtime

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

  1. mhshpk

    mhshpk

    Joined:
    Jul 12, 2007
    Messages:
    6
    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. Advertising

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. Dave Stallard
    Replies:
    37
    Views:
    951
    Roedy Green
    Oct 8, 2003
  2. Juergen Berchtel
    Replies:
    1
    Views:
    5,968
    John C. Bollinger
    May 20, 2005
  3. martinus
    Replies:
    3
    Views:
    288
    martinus
    Nov 20, 2007
  4. Soul
    Replies:
    0
    Views:
    503
  5. jcpc
    Replies:
    2
    Views:
    1,448
Loading...

Share This Page