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