M
Max
Suppose I have a
string s="System.Windows.Forms.Label";
and I would like to create a corresponding object.
object o = ObjectByTypeName(s);
How do I implement ObjectByTypeName function, having in mind that s may be
just any valid object type name? For simplicity we may suppose that the
specified type has a default constructor (constructor with no parameters).
string s="System.Windows.Forms.Label";
and I would like to create a corresponding object.
object o = ObjectByTypeName(s);
How do I implement ObjectByTypeName function, having in mind that s may be
just any valid object type name? For simplicity we may suppose that the
specified type has a default constructor (constructor with no parameters).