1 override of CreateInstance
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfKnownTypeInvoker.cs (1)
19
public override object
CreateInstance
(object[] arguments)
13 references to CreateInstance
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfKnownTypeInvoker.cs (1)
36
return base.
CreateInstance
(arguments);
System.Xaml (1)
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
73
return xamlType.Invoker.
CreateInstance
(args);
System.Xaml.Tests (11)
System\Xaml\Schema\XamlTypeInvokerTests.cs (11)
156
Assert.Equal(1, Assert.IsType<PublicClass>(invoker.
CreateInstance
(null)).Value);
157
Assert.Equal(1, Assert.IsType<PublicClass>(invoker.
CreateInstance
(Array.Empty<object>())).Value);
164
Assert.Equal(2, Assert.IsType<PublicClass>(invoker.
CreateInstance
(new object[] { 2 })).Value);
171
Assert.Equal(1, Assert.IsType<PrivateClass>(invoker.
CreateInstance
(null)).Value);
172
Assert.Equal(1, Assert.IsType<PrivateClass>(invoker.
CreateInstance
(Array.Empty<object>())).Value);
179
Assert.Equal(0, invoker.
CreateInstance
(null));
180
Assert.Equal(0, invoker.
CreateInstance
(Array.Empty<object>()));
187
Assert.Throws<NotSupportedException>(() => invoker.
CreateInstance
(null));
188
Assert.Throws<NotSupportedException>(() => invoker.
CreateInstance
(Array.Empty<object>()));
195
Assert.Throws<MissingMethodException>(() => invoker.
CreateInstance
(null));
196
Assert.Throws<MissingMethodException>(() => invoker.
CreateInstance
(Array.Empty<object>()));