R
rapataa
hi,
anyone knows how to instantiate a class, using only the type?
for example:
public void Init(Type sssType)
{
object = new sssType ?????
}
the method Init will be called like this:
Sustem.Typ sss = typeof(myClass);
Init(sss);
anyone knows how to instantiate a class, using only the type?
for example:
public void Init(Type sssType)
{
object = new sssType ?????
}
the method Init will be called like this:
Sustem.Typ sss = typeof(myClass);
Init(sss);