public CreateInstance ( object arguments ) : object | ||
arguments | object | |
return | object |
public void CreateInstanceList () { var i = new XamlTypeInvoker (new XamlType (typeof (List<int>), sctx)); i.CreateInstance (new object [0]); }
public void CreateInstanceArray () { var i = new XamlTypeInvoker (new XamlType (typeof (int []), sctx)); i.CreateInstance (new object [0]); // no default constructor. }
public void CreateInstanceList_ArgumentMismatch () { var i = new XamlTypeInvoker (new XamlType (typeof (List<int>), sctx)); i.CreateInstance (new object [] {"foo"}); }
public void CreateInstanceNoUnderlyingType () { var i = new XamlTypeInvoker (new XamlType ("urn:foo", "FooType", null, sctx)); i.CreateInstance (new object [0]); // unkown type is not supported }