2 types derived from XamlTypeInvoker
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfKnownTypeInvoker.cs (1)
9
class WpfKnownTypeInvoker :
XamlTypeInvoker
System.Xaml.Tests (1)
System\Xaml\Schema\XamlTypeInvokerTests.cs (1)
572
private class SubXamlTypeInvoker :
XamlTypeInvoker
44 instantiations of XamlTypeInvoker
System.Xaml (2)
System\Xaml\Schema\XamlTypeInvoker.cs (1)
41
s_Unknown = new
XamlTypeInvoker
();
System\Xaml\XamlType.cs (1)
919
return (UnderlyingType is not null) ? new
XamlTypeInvoker
(this) : null;
System.Xaml.Tests (42)
System\Xaml\Schema\XamlTypeInvokerTests.cs (41)
28
var invoker = new
XamlTypeInvoker
(type);
36
Assert.Throws<ArgumentNullException>("type", () => new
XamlTypeInvoker
(null));
51
var invoker = new
XamlTypeInvoker
(new XamlType(typeof(ListAddGetEnumeratorClass), new XamlSchemaContext()));
78
yield return new object[] { new
XamlTypeInvoker
(new XamlType("namespace", "name", null, new XamlSchemaContext())) };
91
var invoker = new
XamlTypeInvoker
(new XamlType(typeof(object), new XamlSchemaContext()));
98
var invoker = new
XamlTypeInvoker
(new XamlType(typeof(List<int>), new XamlSchemaContext()));
105
var invoker = new
XamlTypeInvoker
(new XamlType(typeof(DictionaryAddGetEnumeratorClass), new XamlSchemaContext()));
141
var invoker = new
XamlTypeInvoker
(new XamlType(typeof(object), new XamlSchemaContext()));
148
var invoker = new
XamlTypeInvoker
(new XamlType(typeof(Dictionary<object, int>), new XamlSchemaContext()));
155
var invoker = new
XamlTypeInvoker
(new XamlType(typeof(PublicClass), new XamlSchemaContext()));
163
var invoker = new
XamlTypeInvoker
(new XamlType(typeof(PublicClass), new XamlSchemaContext()));
170
var invoker = new
XamlTypeInvoker
(new XamlType(typeof(PrivateClass), new XamlSchemaContext()));
178
var invoker = new
XamlTypeInvoker
(new XamlType(typeof(int), new XamlSchemaContext()));
194
var invoker = new
XamlTypeInvoker
(new XamlType(typeof(NoDefaultConstructorClass), new XamlSchemaContext()));
229
new
XamlTypeInvoker
(new XamlType("namespace", "name", null, new XamlSchemaContext())),
235
new
XamlTypeInvoker
(new XamlType(typeof(int), new XamlSchemaContext())),
243
new
XamlTypeInvoker
(new XamlType(typeof(List<int>), new XamlSchemaContext())),
249
new
XamlTypeInvoker
(new XamlType(typeof(List<Array>), new XamlSchemaContext())),
255
new
XamlTypeInvoker
(new XamlType(typeof(List<Array>), new XamlSchemaContext())),
261
new
XamlTypeInvoker
(new XamlType(typeof(List<int>), new XamlSchemaContext())),
267
new
XamlTypeInvoker
(new XamlType(typeof(ListAddGetEnumeratorClass), new XamlSchemaContext())),
273
new
XamlTypeInvoker
(new XamlType(typeof(Dictionary<int, string>), new XamlSchemaContext())),
279
new
XamlTypeInvoker
(new XamlType(typeof(Dictionary<int, string>), new XamlSchemaContext())),
285
new
XamlTypeInvoker
(new XamlType(typeof(DictionaryAddGetEnumeratorClass), new XamlSchemaContext())),
295
new
XamlTypeInvoker
(new XamlType(type, new XamlSchemaContext())),
301
new
XamlTypeInvoker
(new XamlType(type, new XamlSchemaContext())),
307
new
XamlTypeInvoker
(new CustomXamlType(type, new XamlSchemaContext())
321
new
XamlTypeInvoker
(new XamlType(type, new XamlSchemaContext())),
327
new
XamlTypeInvoker
(new XamlType(type, new XamlSchemaContext())),
333
new
XamlTypeInvoker
(new CustomXamlType(type, new XamlSchemaContext())
347
new
XamlTypeInvoker
(new CustomXamlType(type, new XamlSchemaContext())
361
new
XamlTypeInvoker
(new CustomXamlType(type, new XamlSchemaContext())
452
new
XamlTypeInvoker
(new XamlType("namespace", "name", null, new XamlSchemaContext())),
457
new
XamlTypeInvoker
(new XamlType(typeof(int), new XamlSchemaContext())),
464
new
XamlTypeInvoker
(new XamlType(typeof(ICollection<int>), new XamlSchemaContext())),
469
new
XamlTypeInvoker
(new XamlType(typeof(List<int>), new XamlSchemaContext())),
474
new
XamlTypeInvoker
(new XamlType(typeof(GetEnumeratorClass), new XamlSchemaContext())),
479
new
XamlTypeInvoker
(new XamlType(typeof(BadReturnGetEnumeratorClass), new XamlSchemaContext())),
484
new
XamlTypeInvoker
(new XamlType(typeof(TooManyParametersGetEnumeratorClass), new XamlSchemaContext())),
500
var invoker = new
XamlTypeInvoker
(new XamlType(typeof(GetEnumeratorClass), new XamlSchemaContext()));
534
var invoker = new
XamlTypeInvoker
(new XamlType(typeof(object), new XamlSchemaContext()));
System\Xaml\XamlTypeTests.cs (1)
102
yield return new object?[] { typeof(NestedClass), new XamlSchemaContext(), new
XamlTypeInvoker
(new XamlType(typeof(int), new XamlSchemaContext())), "XamlTypeTests+NestedClass", null };
67 references to XamlTypeInvoker
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
300
protected override System.Xaml.Schema.
XamlTypeInvoker
LookupInvoker()
System.Xaml (13)
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (1)
442
return xamlType.Invoker.GetType() == typeof(
XamlTypeInvoker
);
System\Xaml\Schema\TypeReflector.cs (2)
102
Invoker =
XamlTypeInvoker
.UnknownInvoker;
229
internal
XamlTypeInvoker
Invoker { get; set; }
System\Xaml\Schema\XamlTypeInvoker.cs (5)
16
private static
XamlTypeInvoker
s_Unknown;
35
public static
XamlTypeInvoker
UnknownInvoker
262
public static object CreateInstance(
XamlTypeInvoker
type)
273
private static object CallCtorDelegate(
XamlTypeInvoker
type)
286
private static bool EnsureConstructorDelegate(
XamlTypeInvoker
type)
System\Xaml\XamlType.cs (5)
62
public XamlType(Type underlyingType, XamlSchemaContext schemaContext,
XamlTypeInvoker
invoker)
67
internal XamlType(string alias, Type underlyingType, XamlSchemaContext schemaContext,
XamlTypeInvoker
invoker, TypeReflector reflector)
93
public
XamlTypeInvoker
Invoker
100
_reflector.Invoker = LookupInvoker() ??
XamlTypeInvoker
.UnknownInvoker;
917
protected virtual
XamlTypeInvoker
LookupInvoker()
System.Xaml.Tests (53)
Common\CustomXamlType.cs (2)
94
public Optional<
XamlTypeInvoker
?> LookupInvokerResult { get; set; }
95
protected override
XamlTypeInvoker
LookupInvoker()
Common\SubXamlType.cs (1)
45
public
XamlTypeInvoker
LookupInvokerEntry() => LookupInvoker();
System\Xaml\Schema\XamlTypeInvokerTests.cs (40)
28
var
invoker = new XamlTypeInvoker(type);
42
XamlTypeInvoker
invoker =
XamlTypeInvoker
.UnknownInvoker;
43
Assert.Same(invoker,
XamlTypeInvoker
.UnknownInvoker);
51
var
invoker = new XamlTypeInvoker(new XamlType(typeof(ListAddGetEnumeratorClass), new XamlSchemaContext()));
61
XamlTypeInvoker
invoker =
XamlTypeInvoker
.UnknownInvoker;
71
XamlTypeInvoker
invoker =
XamlTypeInvoker
.UnknownInvoker;
77
yield return new object[] {
XamlTypeInvoker
.UnknownInvoker };
83
public void AddToCollection_UnknownInvoker_ThrowsNotSupportedException(
XamlTypeInvoker
invoker)
91
var
invoker = new XamlTypeInvoker(new XamlType(typeof(object), new XamlSchemaContext()));
98
var
invoker = new XamlTypeInvoker(new XamlType(typeof(List<int>), new XamlSchemaContext()));
105
var
invoker = new XamlTypeInvoker(new XamlType(typeof(DictionaryAddGetEnumeratorClass), new XamlSchemaContext()));
116
XamlTypeInvoker
invoker =
XamlTypeInvoker
.UnknownInvoker;
127
XamlTypeInvoker
invoker =
XamlTypeInvoker
.UnknownInvoker;
133
public void AddToDictionary_UnknownInvoker_ThrowsNotSupportedException(
XamlTypeInvoker
invoker)
141
var
invoker = new XamlTypeInvoker(new XamlType(typeof(object), new XamlSchemaContext()));
148
var
invoker = new XamlTypeInvoker(new XamlType(typeof(Dictionary<object, int>), new XamlSchemaContext()));
155
var
invoker = new XamlTypeInvoker(new XamlType(typeof(PublicClass), new XamlSchemaContext()));
163
var
invoker = new XamlTypeInvoker(new XamlType(typeof(PublicClass), new XamlSchemaContext()));
170
var
invoker = new XamlTypeInvoker(new XamlType(typeof(PrivateClass), new XamlSchemaContext()));
178
var
invoker = new XamlTypeInvoker(new XamlType(typeof(int), new XamlSchemaContext()));
185
public void CreateInstance_UnknownInvoker_ThrowsNotSupportedException(
XamlTypeInvoker
invoker)
194
var
invoker = new XamlTypeInvoker(new XamlType(typeof(NoDefaultConstructorClass), new XamlSchemaContext()));
223
XamlTypeInvoker
.UnknownInvoker,
378
public void GetAddMethod_Invoke_ReturnsExpected(
XamlTypeInvoker
invoker, XamlType contentType, MethodInfo expected)
387
XamlTypeInvoker
invoker =
XamlTypeInvoker
.UnknownInvoker;
447
XamlTypeInvoker
.UnknownInvoker,
491
public void GetEnumeratorMethod_Invoke_ReturnsExpected(
XamlTypeInvoker
invoker, MethodInfo expected)
500
var
invoker = new XamlTypeInvoker(new XamlType(typeof(GetEnumeratorClass), new XamlSchemaContext()));
510
XamlTypeInvoker
invoker =
XamlTypeInvoker
.UnknownInvoker;
520
XamlTypeInvoker
invoker =
XamlTypeInvoker
.UnknownInvoker;
526
public void GetItems_UnknownInvoker_ThrowsNotSupportedException(
XamlTypeInvoker
invoker)
534
var
invoker = new XamlTypeInvoker(new XamlType(typeof(object), new XamlSchemaContext()));
System\Xaml\XamlTypeTests.cs (10)
40
Assert.Equal(
XamlTypeInvoker
.UnknownInvoker, type.Invoker);
70
Assert.Equal(
XamlTypeInvoker
.UnknownInvoker, type.Invoker);
96
Assert.NotEqual(
XamlTypeInvoker
.UnknownInvoker, type.Invoker);
103
yield return new object?[] { typeof(List<int>), new XamlSchemaContext(),
XamlTypeInvoker
.UnknownInvoker, "List", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } };
109
public void Ctor_Type_XamlSchemaContext_XamlTypeInvoker(Type underlyingType, XamlSchemaContext schemaContext,
XamlTypeInvoker
invoker, string expectedName, XamlType[] expectedTypeArguments)
119
Assert.NotEqual(
XamlTypeInvoker
.UnknownInvoker, type.Invoker);
131
Assert.Throws<ArgumentNullException>("underlyingType", () => new XamlType(null, new XamlSchemaContext(),
XamlTypeInvoker
.UnknownInvoker));
147
Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlType(typeof(int), null,
XamlTypeInvoker
.UnknownInvoker));
2547
Assert.Equal(
XamlTypeInvoker
.UnknownInvoker, type.Invoker);
2566
Assert.Equal(
XamlTypeInvoker
.UnknownInvoker, type.Invoker);