431 references to XamlType
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
76: base(type, schema)
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
415: base(underlyingType, schemaContext)
System.Xaml.Tests (429)
Common\SubXamlType.cs (1)
17public SubXamlType(Type? underlyingType, XamlSchemaContext? schemaContext) : base(underlyingType, schemaContext) { }
System\Xaml\Replacements\DateTimeConverter2Tests.cs (8)
22var type = new XamlType(typeof(DateTime), new XamlSchemaContext()); 41var type = new XamlType(typeof(DateTime), new XamlSchemaContext()); 51var type = new XamlType(typeof(DateTime), new XamlSchemaContext()); 63var type = new XamlType(typeof(DateTime), new XamlSchemaContext()); 82var type = new XamlType(typeof(DateTime), new XamlSchemaContext()); 92var type = new XamlType(typeof(DateTime), new XamlSchemaContext()); 102var type = new XamlType(typeof(DateTime), new XamlSchemaContext()); 110var type = new XamlType(typeof(DateTime), new XamlSchemaContext());
System\Xaml\Replacements\DateTimeOffsetConverter2Tests.cs (9)
24var type = new XamlType(typeof(DateTimeOffset), new XamlSchemaContext()); 41var type = new XamlType(typeof(DateTimeOffset), new XamlSchemaContext()); 51var type = new XamlType(typeof(DateTimeOffset), new XamlSchemaContext()); 63var type = new XamlType(typeof(DateTimeOffset), new XamlSchemaContext()); 78var type = new XamlType(typeof(DateTimeOffset), new XamlSchemaContext()); 87var type = new XamlType(typeof(DateTimeOffset), new XamlSchemaContext()); 101var type = new XamlType(typeof(DateTimeOffset), new XamlSchemaContext()); 110var type = new XamlType(typeof(DateTimeOffset), new XamlSchemaContext()); 118var type = new XamlType(typeof(DateTimeOffset), new XamlSchemaContext());
System\Xaml\Replacements\EventConverterTests.cs (10)
21var type = new XamlType(typeof(Delegate), new XamlSchemaContext()); 29var type = new XamlType(typeof(Delegate), new XamlSchemaContext()); 68var type = new XamlType(typeof(Delegate), new XamlSchemaContext()); 103var type = new XamlType(typeof(Delegate), new XamlSchemaContext()); 130var type = new XamlType(typeof(Delegate), new XamlSchemaContext()); 140var type = new XamlType(typeof(Delegate), new XamlSchemaContext()); 153var type = new XamlType(typeof(Delegate), new XamlSchemaContext()); 163var type = new XamlType(typeof(Delegate), new XamlSchemaContext()); 173var type = new XamlType(typeof(Delegate), new XamlSchemaContext()); 182var type = new XamlType(typeof(Delegate), new XamlSchemaContext());
System\Xaml\Replacements\TypeListConverterTests.cs (7)
20var type = new XamlType(typeof(Type[]), new XamlSchemaContext()); 28var type = new XamlType(typeof(Type[]), new XamlSchemaContext()); 39var type = new XamlType(typeof(Type[]), new XamlSchemaContext()); 52var type = new XamlType(typeof(Type[]), new XamlSchemaContext()); 62var type = new XamlType(typeof(Type[]), new XamlSchemaContext()); 71var type = new XamlType(typeof(Type[]), new XamlSchemaContext()); 79var type = new XamlType(typeof(Type[]), new XamlSchemaContext());
System\Xaml\Replacements\TypeTypeConverterTests.cs (16)
22var type = new XamlType(typeof(Type), new XamlSchemaContext()); 30var type = new XamlType(typeof(Type), new XamlSchemaContext()); 55var type = new XamlType(typeof(Type), new XamlSchemaContext()); 71var type = new XamlType(typeof(Type), new XamlSchemaContext()); 81var type = new XamlType(typeof(Type), new XamlSchemaContext()); 94var type = new XamlType(typeof(Type), new XamlSchemaContext()); 102var type = new XamlType(typeof(Type), new XamlSchemaContext()); 138var type = new XamlType(typeof(Type), new XamlSchemaContext()); 150GetXamlTypeAction = (type) => new XamlType(typeof(short), new XamlSchemaContext()) 177var type = new XamlType(typeof(Type), new XamlSchemaContext()); 207var type = new XamlType(typeof(Type), new XamlSchemaContext()); 225var type = new XamlType(typeof(Type), new XamlSchemaContext()); 249var expectedType = new XamlType(typeof(int), new XamlSchemaContext()); 258var type = new XamlType(typeof(Type), new XamlSchemaContext()); 268var type = new XamlType(typeof(Type), new XamlSchemaContext()); 277var type = new XamlType(typeof(Type), new XamlSchemaContext());
System\Xaml\Replacements\TypeUriConverterTests.cs (2)
32var normalType = new XamlType(typeof(Uri), new XamlSchemaContext()); 39var type = new XamlType(typeof(Uri), new XamlSchemaContext());
System\Xaml\Schema\XamlTypeInvokerTests.cs (64)
27var type = new XamlType(typeof(ClassWithAttributes), new XamlSchemaContext()); 51var invoker = new XamlTypeInvoker(new XamlType(typeof(ListAddGetEnumeratorClass), 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())); 224new XamlType(typeof(int), new XamlSchemaContext()), 230new XamlType(typeof(int), new XamlSchemaContext()), 235new XamlTypeInvoker(new XamlType(typeof(int), new XamlSchemaContext())), 236new XamlType(typeof(int), new XamlSchemaContext()), 243new XamlTypeInvoker(new XamlType(typeof(List<int>), new XamlSchemaContext())), 244new XamlType(typeof(int), new XamlSchemaContext()), 249new XamlTypeInvoker(new XamlType(typeof(List<Array>), new XamlSchemaContext())), 250new XamlType(typeof(int[]), new XamlSchemaContext()), 255new XamlTypeInvoker(new XamlType(typeof(List<Array>), new XamlSchemaContext())), 256new XamlType(typeof(object), new XamlSchemaContext()), 261new XamlTypeInvoker(new XamlType(typeof(List<int>), new XamlSchemaContext())), 262new XamlType(typeof(string), new XamlSchemaContext()), 267new XamlTypeInvoker(new XamlType(typeof(ListAddGetEnumeratorClass), new XamlSchemaContext())), 268new XamlType(typeof(object), new XamlSchemaContext()), 273new XamlTypeInvoker(new XamlType(typeof(Dictionary<int, string>), new XamlSchemaContext())), 274new XamlType(typeof(int[]), new XamlSchemaContext()), 279new XamlTypeInvoker(new XamlType(typeof(Dictionary<int, string>), new XamlSchemaContext())), 280new XamlType(typeof(KeyValuePair<int, string>), new XamlSchemaContext()), 285new XamlTypeInvoker(new XamlType(typeof(DictionaryAddGetEnumeratorClass), new XamlSchemaContext())), 286new XamlType(typeof(object), new XamlSchemaContext()), 295new XamlTypeInvoker(new XamlType(type, new XamlSchemaContext())), 296new XamlType(typeof(int), new XamlSchemaContext()), 301new XamlTypeInvoker(new XamlType(type, new XamlSchemaContext())), 302new XamlType(typeof(string), new XamlSchemaContext()), 311new XamlType(typeof(string), new XamlSchemaContext()), 312new XamlType(typeof(Array), new XamlSchemaContext()), 313new XamlType(typeof(short), new XamlSchemaContext()) 316new XamlType(typeof(string), new XamlSchemaContext()), 321new XamlTypeInvoker(new XamlType(type, new XamlSchemaContext())), 322new XamlType(typeof(Array), new XamlSchemaContext()), 327new XamlTypeInvoker(new XamlType(type, new XamlSchemaContext())), 328new XamlType(typeof(int[]), new XamlSchemaContext()), 337new XamlType(typeof(string), new XamlSchemaContext()), 338new XamlType(typeof(Array), new XamlSchemaContext()), 339new XamlType(typeof(double), new XamlSchemaContext()) 342new XamlType(typeof(int[]), new XamlSchemaContext()), 351new XamlType(typeof(string), new XamlSchemaContext()), 352new XamlType(typeof(Array), new XamlSchemaContext()), 353new XamlType(typeof(double), new XamlSchemaContext()) 356new XamlType(typeof(double), new XamlSchemaContext()), 365new XamlType(typeof(string), new XamlSchemaContext()), 366new XamlType(typeof(Array), new XamlSchemaContext()), 367new XamlType(typeof(double), new XamlSchemaContext()) 370new XamlType(typeof(object), 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\Schema\XamlTypeTypeConverterTests.cs (5)
51new XamlType(typeof(int), context) 225var type = new XamlType(typeof(int), new XamlSchemaContext()); 248var type = new XamlType(typeof(int), new XamlSchemaContext()); 267var type = new XamlType(typeof(int), new XamlSchemaContext()); 276var type = new XamlType(typeof(int), new XamlSchemaContext());
System\Xaml\Schema\XamlValueConverterTests.cs (5)
59var type = new XamlType(typeof(string), new XamlSchemaContext()); 68var type = new XamlType(typeof(ConsoleColor), new XamlSchemaContext()); 77var type = new XamlType(typeof(ConsoleColor), new XamlSchemaContext()); 85var type = new XamlType(typeof(string), new XamlSchemaContext()); 93var type = new XamlType(typeof(ConsoleColor), new XamlSchemaContext());
System\Xaml\XamlBackgroundReaderTests.cs (2)
25TypeResult = new XamlType(typeof(int), new XamlSchemaContext()), 27MemberResult = new XamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false),
System\Xaml\XamlMemberTests.cs (97)
57Assert.Equal(new XamlType(propertyInfo.DeclaringType, schemaContext), member.DeclaringType); 79Assert.Equal(new XamlType(propertyInfo.DeclaringType, schemaContext), member.DeclaringType); 113Assert.Equal(new XamlType(eventInfo.DeclaringType, schemaContext), member.DeclaringType); 135Assert.Equal(new XamlType(eventInfo.DeclaringType, schemaContext), member.DeclaringType); 172Assert.Equal(new XamlType(typeof(AccessorClass), schemaContext), member.DeclaringType); 195Assert.Equal(new XamlType(typeof(AccessorClass), schemaContext), member.DeclaringType); 259Assert.Equal(new XamlType(typeof(AccessorClass), schemaContext), member.DeclaringType); 280Assert.Equal(new XamlType(typeof(AccessorClass), schemaContext), member.DeclaringType); 347var member = new XamlMember(name, new XamlType(typeof(int), new XamlSchemaContext()), false); 355var member = new XamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false); 390var member = new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false); 396yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), null }; 397yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), null }; 425new CustomXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) 571yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), null }; 572yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), null }; 600new CustomXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) 694var member = new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false); 737yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), false }; 738yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), false }; 755new CustomXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) 805yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), false, false }; 806yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), false, false }; 832new CustomXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) 858yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), true, true }; 859yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), true, true }; 963yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), false }; 964yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), false }; 1040yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), true, true }; 1041yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), true, true }; 1067new CustomXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) 1100yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), true, true }; 1101yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), true, true }; 1205yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), false }; 1206yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), false }; 1282yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), null }; 1283yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), null }; 1311new CustomXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) 1416yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), DesignerSerializationVisibility.Visible }; 1417yield return new object[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), DesignerSerializationVisibility.Visible }; 1445new CustomXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) 1524yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), new XamlType(typeof(int), new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()) }; 1525yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), XamlLanguage.Object, XamlLanguage.Object }; 1530new XamlType(typeof(DataClass), new XamlSchemaContext()), new XamlType(typeof(DataClass), new XamlSchemaContext()) 1535new XamlType(typeof(string), new XamlSchemaContext()), new XamlType(typeof(string), new XamlSchemaContext()) 1541new XamlType(typeof(DataClass), new XamlSchemaContext()), new XamlType(typeof(DataClass), new XamlSchemaContext()) 1546new XamlType(typeof(int), new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()) 1551new CustomXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true) 1560new CustomXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true) 1580null, new XamlType(typeof(DataClass), new XamlSchemaContext()) 1601yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), null }; 1602yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), null }; 1607new XamlType(typeof(int), new XamlSchemaContext()) 1612new XamlType(typeof(int), new XamlSchemaContext()) 1617new XamlType(typeof(string), new XamlSchemaContext()) 1622new XamlType(typeof(int), new XamlSchemaContext()) 1628new XamlType(typeof(EventHandler), new XamlSchemaContext()) 1633new XamlType(typeof(string), new XamlSchemaContext()) 1638new XamlType(typeof(int), new XamlSchemaContext()) 1643new CustomXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) 1650new XamlType(typeof(string), new XamlSchemaContext()) 1654new CustomXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) 1687yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), new XamlValueConverter<TypeConverter>(null, XamlLanguage.Object), null }; 1688yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), new XamlValueConverter<TypeConverter>(null, XamlLanguage.Object), null }; 1715new CustomXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) 1840yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), null }; 1841yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), null }; 1904yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), null, null }; 1905yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), null, null }; 1944new CustomXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) 1969yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), null }; 1970yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), null }; 2038yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), null }; 2039yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), null }; 2066new CustomXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) 2201yield return new object?[] { member, new XamlMember("name", new XamlType(typeof(DataClass), new XamlSchemaContext()), false), false }; 2226new XamlMember("name", new XamlType(typeof(DataClass), new XamlSchemaContext()), false), 2244new XamlMember("name", new XamlType(typeof(DataClass), new XamlSchemaContext()), false), 2245new XamlMember("name", new XamlType(typeof(DataClass), new XamlSchemaContext()), false), 2250new XamlMember("name", new XamlType(typeof(DataClass), new XamlSchemaContext()), false), 2251new XamlMember("other", new XamlType(typeof(DataClass), new XamlSchemaContext()), false), 2256new XamlMember("name", new XamlType(typeof(DataClass), new XamlSchemaContext()), false), 2257new XamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), 2262new XamlMember("name", new XamlType(typeof(DataClass), new XamlSchemaContext()), false), 2263new XamlMember("name", new XamlType(typeof(DataClass), new XamlSchemaContext()), true), 2268new XamlMember("Property", new XamlType(typeof(DataClass), new XamlSchemaContext()), false), 2274new XamlMember("Event", new XamlType(typeof(DataClass), new XamlSchemaContext()), false), 2280new XamlMember("name", new XamlType(typeof(DataClass), new XamlSchemaContext()), false), 2286new XamlMember("name", new XamlType(typeof(DataClass), new XamlSchemaContext()), false), 2314yield return new object[] { new XamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) }; 2315yield return new object[] { new XamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true) };
System\Xaml\XamlReaderTests.cs (2)
63TypeResult = new XamlType(typeof(int), new XamlSchemaContext()), 65MemberResult = new XamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false),
System\Xaml\XamlSchemaContextTests.cs (47)
448new XamlType(typeof(ArrayExtension), new XamlSchemaContext()) 453new XamlType(typeof(ArrayExtension), new XamlSchemaContext()) 458new XamlType(typeof(MemberDefinition), new XamlSchemaContext()) 463new XamlType(typeof(NullExtension), new XamlSchemaContext()) 468new XamlType(typeof(NullExtension), new XamlSchemaContext()) 473new XamlType(typeof(PropertyDefinition), new XamlSchemaContext()) 478new XamlType(typeof(Reference), new XamlSchemaContext()) 483new XamlType(typeof(Reference), new XamlSchemaContext()) 488new XamlType(typeof(StaticExtension), new XamlSchemaContext()) 493new XamlType(typeof(StaticExtension), new XamlSchemaContext()) 498new XamlType(typeof(TypeExtension), new XamlSchemaContext()) 503new XamlType(typeof(TypeExtension), new XamlSchemaContext()) 508new XamlType(typeof(string), new XamlSchemaContext()) 513new XamlType(typeof(double), new XamlSchemaContext()) 518new XamlType(typeof(short), new XamlSchemaContext()) 523new XamlType(typeof(int), new XamlSchemaContext()) 528new XamlType(typeof(long), new XamlSchemaContext()) 533new XamlType(typeof(bool), new XamlSchemaContext()) 538new XamlType(typeof(XData), new XamlSchemaContext()) 543new XamlType(typeof(object), new XamlSchemaContext()) 548new XamlType(typeof(char), new XamlSchemaContext()) 553new XamlType(typeof(float), new XamlSchemaContext()) 558new XamlType(typeof(byte), new XamlSchemaContext()) 563new XamlType(typeof(decimal), new XamlSchemaContext()) 568new XamlType(typeof(Uri), new XamlSchemaContext()) 573new XamlType(typeof(TimeSpan), new XamlSchemaContext()) 590new XamlType(typeof(int), new XamlSchemaContext()) 595new XamlType(typeof(int), new XamlSchemaContext()) 600new XamlType(typeof(XamlSchemaContextTests), new XamlSchemaContext()) 610new XamlType(typeof(List<int>), new XamlSchemaContext()) 618new XamlType(typeof(List<int>[]), new XamlSchemaContext()) 626new XamlType(typeof(List<int>[,][]), new XamlSchemaContext()) 634new XamlType(typeof(List<int>[,][]), new XamlSchemaContext()) 642new XamlType(typeof(List<int>[,,]), new XamlSchemaContext()) 677new XamlType(typeof(PublicNestedClass), new XamlSchemaContext()) 687new XamlType(typeof(PublicNestedClass.PublicClass), new XamlSchemaContext()) 709new XamlType(typeof(XamlType), new XamlSchemaContext()) 714new XamlType(typeof(MemberDefinition), new XamlSchemaContext()) 719new XamlType(typeof(MemberDefinition), new XamlSchemaContext()) 734new XamlType(typeof(PropertyDefinition), new XamlSchemaContext()) 739new XamlType(typeof(PropertyDefinition), new XamlSchemaContext()) 754new XamlType(typeof(AmbientAttribute), new XamlSchemaContext()) 858new XamlType(typeof(int), new XamlSchemaContext()) 868new XamlType(typeof(int), new XamlSchemaContext()) 878new XamlType(typeof(int), new XamlSchemaContext()) 886new XamlType(typeof(int), new XamlSchemaContext()) 998Assert.Equal(new XamlType(underlyingType, new XamlSchemaContext()), type);
System\Xaml\XamlTypeTests.cs (152)
27yield return new object?[] { "unknownTypeNamespace", "unknownTypeName", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) }, new XamlSchemaContext() }; 83yield return new object?[] { typeof(List<int>), new XamlSchemaContext(), "List", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } }; 84yield return new object?[] { typeof(List<int>[][]), new XamlSchemaContext(), "List[][]", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } }; 91var type = new XamlType(underlyingType, schemaContext); 102yield return new object?[] { typeof(NestedClass), new XamlSchemaContext(), new XamlTypeInvoker(new XamlType(typeof(int), new XamlSchemaContext())), "XamlTypeTests+NestedClass", null }; 103yield return new object?[] { typeof(List<int>), new XamlSchemaContext(), XamlTypeInvoker.UnknownInvoker, "List", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } }; 104yield return new object?[] { typeof(List<int>[][]), new XamlSchemaContext(), null, "List[][]", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } }; 130Assert.Throws<ArgumentNullException>("underlyingType", () => new XamlType(null, new XamlSchemaContext())); 146Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlType(typeof(int), null)); 176var type = new XamlType(typeof(int), new XamlSchemaContext()); 216new XamlType(typeof(int), new XamlSchemaContext()), 221new XamlType(typeof(int), new XamlSchemaContext(new XamlSchemaContextSettings 231new XamlType(typeof(GlobalNamespaceClass), new XamlSchemaContext()), 236new XamlType(typeof(GlobalNamespaceClass), new XamlSchemaContext(new XamlSchemaContextSettings 244new XamlType(typeof(XamlTypeTests), new XamlSchemaContext()), 249new XamlType(typeof(XamlTypeTests), new XamlSchemaContext(new XamlSchemaContextSettings 259new XamlType(new ReflectionOnlyType(typeof(XamlTypeTests)), new XamlSchemaContext()), 264new XamlType(new CustomType(typeof(XamlTypeTests)) 294new XamlType(createdDynamicType, dynamicCacheContext), 299new XamlType(createdDynamicType, dynamicCacheContext), 443new XamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) 449new XamlMember("keyName", new XamlType(typeof(ClassWithAliasedAttributes), new XamlSchemaContext()), false) 455new XamlMember("keyName", new XamlType(typeof(InheritedClassWithAliasedAttributes), new XamlSchemaContext()), false) 475new XamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) 481new XamlMember("runtimeName", new XamlType(typeof(ClassWithAliasedAttributes), new XamlSchemaContext()), false) 487new XamlMember("runtimeName", new XamlType(typeof(InheritedClassWithAliasedAttributes), new XamlSchemaContext()), false) 507new XamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) 513new XamlMember("uidName", new XamlType(typeof(ClassWithAliasedAttributes), new XamlSchemaContext()), false) 519new XamlMember("uidName", new XamlType(typeof(InheritedClassWithAliasedAttributes), new XamlSchemaContext()), false) 539new XamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) 545new XamlMember("langName", new XamlType(typeof(ClassWithAliasedAttributes), new XamlSchemaContext()), false) 551new XamlMember("langName", new XamlType(typeof(InheritedClassWithAliasedAttributes), new XamlSchemaContext()), false) 1349yield return new object?[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } }; 1362new XamlType[] { new XamlType(typeof(string), new XamlSchemaContext()) } 1373new XamlType[] { new XamlType(typeof(string), new XamlSchemaContext()) } 1391new XamlType[] { new XamlType(typeof(string), new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()) } 1397new XamlType[] { new XamlType(typeof(string), new XamlSchemaContext()) } 1402new XamlType[] { new XamlType(typeof(string), new XamlSchemaContext()) } 1407new XamlType[] { new XamlType(typeof(string), new XamlSchemaContext()) } 1412new XamlType[] { new XamlType(typeof(string), new XamlSchemaContext()) } 1705yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), new XamlType(typeof(ValueType), new XamlSchemaContext()) }; 1957new XamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false) 1991new XamlMember("name", new XamlType(typeof(ClassWithUnknownContentPropertyAttribute), new XamlSchemaContext()), false) 2011new XamlMember("name", new XamlType(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithUnknownContentPropertyAttribute)), new XamlSchemaContext()), false) 2156new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } 2185new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } 2190new XamlType[] { new XamlType(typeof(string), new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()) } 2195new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } 2989yield return new object?[] { new SubXamlType(typeof(int[]), new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()) }; 2990yield return new object?[] { new SubXamlType(typeof(IList), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) }; 2991yield return new object?[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()) }; 2992yield return new object?[] { new SubXamlType(typeof(AmbiguousIList), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) }; 2994yield return new object?[] { new SubXamlType(typeof(MultiICollectionImplementer), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) }; 2995yield return new object?[] { new SubXamlType(typeof(GetEnumeratorClass), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) }; 2996yield return new object?[] { new SubXamlType(typeof(IDictionary), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) }; 2997yield return new object?[] { new SubXamlType(typeof(Dictionary<int, string>), new XamlSchemaContext()), new XamlType(typeof(string), new XamlSchemaContext()) }; 2998yield return new object?[] { new SubXamlType(typeof(AmbiguousIDictionary), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) }; 3051yield return new object?[] { new SubXamlType(typeof(IDictionary), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) }; 3052yield return new object?[] { new SubXamlType(typeof(Dictionary<int, string>), new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()) }; 3053yield return new object?[] { new SubXamlType(typeof(AmbiguousIDictionary), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) }; 3306new XamlType(typeof(int), new XamlSchemaContext()) 3335new XamlType(typeof(int), new XamlSchemaContext()) 3340new XamlType(typeof(int), new XamlSchemaContext()) 3345new XamlType(typeof(int), new XamlSchemaContext()) 3680yield return new object?[] { new SubXamlType(typeof(ClassWithCustomConstructor), new XamlSchemaContext()), 1, new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } }; 3683yield return new object?[] { new SubXamlType(typeof(TypeExtension), new XamlSchemaContext()), 1, new XamlType[] { new XamlType(typeof(Type), new XamlSchemaContext()) } }; 3689yield return new object?[] { new SubXamlType(typeof(ArrayExtension), new XamlSchemaContext(duplicateSupport)), 1, new XamlType[] { new XamlType(typeof(Type), new XamlSchemaContext()) } }; 4222yield return new object?[] { new SubXamlType(typeof(ConsoleColor), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(EnumConverter), new XamlType(typeof(ConsoleColor), new XamlSchemaContext())) }; 4830yield return new object?[] { new XamlType(typeof(int), new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()), true }; 4831yield return new object?[] { new XamlType(typeof(int), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()), true }; 4832yield return new object?[] { new XamlType(typeof(int), new XamlSchemaContext()), new XamlType(typeof(string), new XamlSchemaContext()), false }; 4833yield return new object?[] { new XamlType(typeof(SubXamlType), new XamlSchemaContext()), new XamlType(typeof(XamlType), new XamlSchemaContext()), true }; 4834yield return new object?[] { new XamlType(typeof(XamlType), new XamlSchemaContext()), new XamlType(typeof(SubXamlType), new XamlSchemaContext()), false }; 4835yield return new object?[] { new XamlType(typeof(int), new XamlSchemaContext()), new XamlType("unknownTypeNamespace", "unknownType", null, new XamlSchemaContext()), false }; 4836yield return new object?[] { new XamlType(typeof(int), new XamlSchemaContext()), null, false }; 4841yield return new object?[] { new XamlType("unknownTypeNamespace", "unknownType", null, new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()), false }; 4847new XamlType(new ReflectionOnlyType(typeof(XamlType)), new XamlSchemaContext()), 4848new XamlType(typeof(XamlType), new XamlSchemaContext()), 4853new XamlType(new ReflectionOnlyType(typeof(XamlType)), new XamlSchemaContext()), 4854new XamlType(typeof(XamlSchemaContext), new XamlSchemaContext()), 4859new XamlType(new ReflectionOnlyType(typeof(int)), new XamlSchemaContext()), 4860new XamlType(typeof(XamlSchemaContext), new XamlSchemaContext()), 4865new XamlType(new ReflectionOnlyType(typeof(XamlObjectWriterSettings)), new XamlSchemaContext()), 4866new XamlType(typeof(XamlWriterSettings), new XamlSchemaContext()), 4871new XamlType(new ReflectionOnlyType(typeof(XamlWriterSettings)), new XamlSchemaContext()), 4872new XamlType(typeof(XamlObjectWriterSettings), new XamlSchemaContext()), 4886new XamlType(differentVersionType, new XamlSchemaContext()), 4887new XamlType(typeof(XamlType), new XamlSchemaContext()), 4899new XamlType(differentCultureType, new XamlSchemaContext()), 4900new XamlType(typeof(XamlType), new XamlSchemaContext()), 4912new XamlType(differentPublicKeyTokenType, new XamlSchemaContext()), 4913new XamlType(typeof(XamlType), new XamlSchemaContext()), 4927new XamlType(windowsBaseType, new XamlSchemaContext()), 4928new XamlType(typeof(XamlType), new XamlSchemaContext()), 4941new XamlType(invalidWindowsBaseType, new XamlSchemaContext()), 4942new XamlType(typeof(XamlType), new XamlSchemaContext()), 4957new XamlType(invalidKeyTokenWindowsBaseType, new XamlSchemaContext()), 4958new XamlType(typeof(XamlType), new XamlSchemaContext()), 4965new XamlType(new ReflectionOnlyType(typeof(int)), new XamlSchemaContext()), 4966new XamlType(typeof(XamlType), new XamlSchemaContext()), 4973new XamlType(new ReflectionOnlyType(typeof(CustomNameScope)), new XamlSchemaContext()), 4974new XamlType(typeof(INameScope), new XamlSchemaContext()), 4979new XamlType(new ReflectionOnlyType(typeof(CustomNameScopeDictionary)), new XamlSchemaContext()), 4980new XamlType(typeof(INameScope), new XamlSchemaContext()), 4985new XamlType(new ReflectionOnlyType(typeof(XamlType)), new XamlSchemaContext()), 4986new XamlType(typeof(INameScope), new XamlSchemaContext()), 4991new XamlType(new ReflectionOnlyType(typeof(int)), new XamlSchemaContext()), 4992new XamlType(typeof(INameScope), new XamlSchemaContext()), 4997new XamlType(new ReflectionOnlyType(typeof(INameScope)), new XamlSchemaContext()), 4998new XamlType(typeof(INameScope), new XamlSchemaContext()), 5003new XamlType(new ReflectionOnlyType(typeof(INameScope)), new XamlSchemaContext()), 5004new XamlType(typeof(INameScopeDictionary), new XamlSchemaContext()), 5009new XamlType(new ReflectionOnlyType(typeof(INameScopeDictionary)), new XamlSchemaContext()), 5010new XamlType(typeof(INameScope), new XamlSchemaContext()), 5020new XamlType(nullInterface, new XamlSchemaContext()), 5021new XamlType(typeof(INameScope), new XamlSchemaContext()), 5029new XamlType(new ReflectionOnlyType(typeof(int)), new XamlSchemaContext()), 5030new XamlType(genericTypeParameter, new XamlSchemaContext()), 5040new XamlType(new ReflectionOnlyType(typeof(int)), new XamlSchemaContext()), 5041new XamlType(nullConstrainedGenericParameter, new XamlSchemaContext()), 5051new XamlType(new ReflectionOnlyType(typeof(XamlObjectWriterSettings)), new XamlSchemaContext()), 5052new XamlType(constrainedGenericParameter, new XamlSchemaContext()), 5058new XamlType(new ReflectionOnlyType(typeof(XamlWriterSettings)), new XamlSchemaContext()), 5059new XamlType(constrainedGenericParameter, new XamlSchemaContext()), 5067new XamlType(new ReflectionOnlyType(typeof(XamlType)), new XamlSchemaContext()), 5068new XamlType(new InconsistentNameTypeDelegator(typeof(XamlType)), new XamlSchemaContext()), 5082var type = new XamlType(typeof(int), new XamlSchemaContext()); 5084yield return new object?[] { type, new XamlType(typeof(int), new XamlSchemaContext()), true }; 5085yield return new object?[] { type, new XamlType(typeof(string), new XamlSchemaContext()), false }; 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 }; 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 }; 5103yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()), false }; 5130yield return new object[] { new XamlType("name", "namespace", new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) }, new XamlSchemaContext()) }; 5131yield return new object[] { new XamlType(typeof(int), new XamlSchemaContext()) };
System\Xaml\XamlWriterTests.cs (2)
33TypeResult = new XamlType(typeof(int), new XamlSchemaContext()) 46MemberResult = new XamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false)