Dynamically loading type in Silverlight with Type.GetType()
Posted
by ondesertverge
on Stack Overflow
See other posts from Stack Overflow
or by ondesertverge
Published on 2010-06-18T08:26:01Z
Indexed on
2010/06/18
8:33 UTC
Read the original article
Hit count: 990
Silverlight
|gettype
Trying to specify the assembly name like this:
Type.GetType(string.Format("{0}.{1}, {0}", widget.Assembly, widget.Class));
Throws this:
The requested assembly version conflicts with what is already bound in the app domain or specified in the manifest
Trying it without the the assembly:
Type.GetType(string.Format("{0}.{1}", widget.Assembly, widget.Class));
Returns null.
I am looking for a way to instantiate a class using it's fully qualified name in Silverlight 4.0. Thanks.
© Stack Overflow or respective owner