TemplateContainer and generics

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alexander Widera

    #1

    TemplateContainer and generics

    hi,

    normally i create a template-property for a custom control this way:

    [PersistenceMode (PersistenceMod e.InnerProperty )]

    [TemplateContain er(typeof(MyTem plateClass))]

    public ITemplate TheTemplate

    {

    get { return _theTemplate; }

    set { _theTemplate = value; }

    }



    But now, i have the wish to use instead of MyTemplateClass , a class which is
    generic ... for example: MyTemplateClass Gen<something>

    How can I realize that? ... with the typeof() it doesn't work


    thank,
    alex



Working...