84 references to XamlType
System.Xaml (4)
System\Xaml\Context\XamlContext.cs (1)
289xamlType = new XamlType(typeName.Namespace, typeName.Name, typeArgs, SchemaContext);
System\Xaml\Parser\XamlAttribute.cs (1)
155XamlType attachedOwnerType = new XamlType(string.Empty, propName.OwnerName, null, context.SchemaContext);
System\Xaml\Parser\XamlScanner.cs (1)
545return new XamlType(xmlns, name.Name, null, _parserContext.SchemaContext);
System\Xaml\Schema\XamlTypeTypeConverter.cs (1)
112result = new XamlType(typeName.Namespace, typeName.Name, typeArgs, schemaContext);
System.Xaml.Tests (80)
Common\SubXamlType.cs (1)
15public SubXamlType(string? unknownTypeNamespace, string? unknownTypeName, IList<XamlType?>? typeArguments, XamlSchemaContext schemaContext) : base(unknownTypeNamespace, unknownTypeName, typeArguments, schemaContext) { }
System\Windows\Markup\XamlSetMarkupExtensionEventArgsTests.cs (1)
14var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
System\Windows\Markup\XamlSetTypeConverterEventArgsTests.cs (1)
16var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
System\Windows\Markup\XamlSetValueEventArgsTests.cs (1)
14var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
System\Xaml\AmbientPropertyValueTests.cs (1)
14var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
System\Xaml\Schema\XamlMemberInvokerTests.cs (3)
24var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext()); 62var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext()); 284return new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
System\Xaml\Schema\XamlTypeInvokerTests.cs (3)
78yield return new object[] { new XamlTypeInvoker(new XamlType("namespace", "name", null, new XamlSchemaContext())) }; 229new XamlTypeInvoker(new XamlType("namespace", "name", null, new XamlSchemaContext())), 452new XamlTypeInvoker(new XamlType("namespace", "name", null, new XamlSchemaContext())),
System\Xaml\Schema\XamlTypeNameTests.cs (3)
55var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext()); 65var typeArgument = new XamlType("typeNamespace", "typeName", null, new XamlSchemaContext()); 66var type = new XamlType("unknownTypeNamespace", "unknownTypeName", new XamlType[] { typeArgument }, new XamlSchemaContext());
System\Xaml\Schema\XamlTypeTypeConverterTests.cs (3)
33new XamlType("namespace", "name", null, context) 40new XamlType("namespace", "name", new XamlType[] 42new XamlType("namespace", "typeName", null, context)
System\Xaml\Schema\XamlValueConverterTests.cs (3)
15var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext()); 32var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext()); 100var type1 = new XamlType("unknownTypeNamespace", "unknownTypeName1", null, new XamlSchemaContext());
System\Xaml\XamlDirectiveTests.cs (11)
17var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext()); 29var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext()); 48var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext()); 55var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext()); 82var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext()); 90var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext()); 97var type1 = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext()); 98var type2 = new XamlType("unknownTypeNamespace2", "unknownTypeName", null, new XamlSchemaContext()); 149var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext()); 248var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext()); 257var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
System\Xaml\XamlDuplicateMemberExceptionTests.cs (1)
39var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
System\Xaml\XamlMemberTests.cs (4)
23var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext()); 36var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext()); 68var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext()); 124var type = new XamlType("unknownTypeNamespace", "unknownTypeName", null, new XamlSchemaContext());
System\Xaml\XamlTypeTests.cs (44)
34var type = new XamlType(unknownTypeNamespace, unknownTypeName, typeArguments, schemaContext); 46Assert.Throws<ArgumentNullException>("unknownTypeNamespace", () => new XamlType(null, "unknownTypeName", Array.Empty<XamlType>(), new XamlSchemaContext())); 52Assert.Throws<ArgumentNullException>("unknownTypeName", () => new XamlType("unknownTypeNamespace", null, Array.Empty<XamlType>(), new XamlSchemaContext())); 138Assert.Throws<ArgumentException>(() => new XamlType("unknownTypeNamespace", "unknownTypeName", new XamlType?[] { null }, new XamlSchemaContext())); 145Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlType("unknownTypeNamespace", "unknownTypeName", Array.Empty<XamlType>(), null)); 161var type = new XamlType("namespace", name, null, new XamlSchemaContext()); 169var type = new XamlType("namespace", "name", null, new XamlSchemaContext()); 601LookupBaseTypeResult = new XamlType("namespace", "name", null, new XamlSchemaContext()) 2022LookupBaseTypeResult = new XamlType("namespace", "name", null, new XamlSchemaContext()) 3004LookupBaseTypeResult = new XamlType("namespace", "name", null, new XamlSchemaContext()) 3059LookupBaseTypeResult = new XamlType("namespace", "name", null, new XamlSchemaContext()) 3799LookupBaseTypeResult = new XamlType("namespace", "name", null, new XamlSchemaContext()) 3998LookupBaseTypeResult = new XamlType("namespace", "name", null, new XamlSchemaContext()) 4835yield return new object?[] { new XamlType(typeof(int), new XamlSchemaContext()), new XamlType("unknownTypeNamespace", "unknownType", null, new XamlSchemaContext()), false }; 4839yield return new object?[] { new XamlType("unknownTypeNamespace", "unknownType", null, new XamlSchemaContext()), new XamlType("unknownTypeNamespace", "unknownType", null, new XamlSchemaContext()), true }; 4840yield return new object?[] { new XamlType("unknownTypeNamespace", "unknownType", null, new XamlSchemaContext()), new XamlType("otherTypeNamespace", "unknownType", null, new XamlSchemaContext()), false }; 4841yield return new object?[] { new XamlType("unknownTypeNamespace", "unknownType", null, new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()), false }; 4842yield return new object?[] { new XamlType("unknownTypeNamespace", "unknownType", null, new XamlSchemaContext()), null, false }; 5086yield return new object?[] { type, new XamlType("namespace", "name", null, new XamlSchemaContext()), false }; 5089yield return new object?[] { new XamlType("namespace", "name", null, new XamlSchemaContext()), new XamlType("namespace", "name", null, new XamlSchemaContext()), true }; 5090yield return new object?[] { new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) }, new XamlSchemaContext()), new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) }, new XamlSchemaContext()), true }; 5091yield return new object?[] { new XamlType("namespace", "name", null, new XamlSchemaContext()), new XamlType("otherNamespace", "name", null, new XamlSchemaContext()), false }; 5092yield return new object?[] { new XamlType("namespace", "name", null, new XamlSchemaContext()), new XamlType("namespace", "otherName", null, new XamlSchemaContext()), false }; 5093yield return new object?[] { new XamlType("namespace", "name", null, new XamlSchemaContext()), new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) }, new XamlSchemaContext()), false }; 5094yield return new object?[] { new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) }, new XamlSchemaContext()), new XamlType("namespace", "name", null, new XamlSchemaContext()), false }; 5095yield return new object?[] { new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) }, new XamlSchemaContext()), new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(string), new XamlSchemaContext()) }, new XamlSchemaContext()), false }; 5096yield return new object?[] { new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()), new XamlType(typeof(string), new XamlSchemaContext()) }, new XamlSchemaContext()), new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(string), new XamlSchemaContext()) }, new XamlSchemaContext()), false }; 5097yield return new object?[] { new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) }, new XamlSchemaContext()), new XamlType("namespace", "name", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()), new XamlType(typeof(string), new XamlSchemaContext()) }, new XamlSchemaContext()), false }; 5098yield return new object?[] { new XamlType("namespace", "name", null, new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()), false }; 5099yield return new object?[] { new XamlType("namespace", "name", null, new XamlSchemaContext()), new SubXamlType("name", null, new XamlSchemaContext()), false }; 5104yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), new XamlType("namespace", "name", null, new XamlSchemaContext()), false }; 5129yield return new object[] { new XamlType("name", "namespace", null, new XamlSchemaContext()) }; 5130yield return new object[] { new XamlType("name", "namespace", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) }, new XamlSchemaContext()) };