Save a type in a variable

Heinz billgates at microsoft.com
Thu Jan 25 10:50:21 PST 2007


Hi, i have a class and i need to retrieve a type as a parameter in its constructor, example: (can be made easily in c#)

class myclass
{
        type mytype;
        
        this(type t)
        {
                 mytype = t;
        }
}

I don't have a single approach to do this. i need a clue pliss? an example woyld be great hehe, thx


More information about the Digitalmars-d-learn mailing list