326 references to SubXamlType
System.Xaml.Tests (326)
Common\CustomXamlType.cs (1)
17
public CustomXamlType(Type underlyingType, XamlSchemaContext schemaContext) :
base
(underlyingType, schemaContext) { }
System\Xaml\XamlTypeTests.cs (325)
428
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), XamlLanguage.Key, null };
447
new
SubXamlType
(typeof(ClassWithAliasedAttributes), new XamlSchemaContext()),
453
new
SubXamlType
(typeof(InheritedClassWithAliasedAttributes), new XamlSchemaContext()),
459
new
SubXamlType
(typeof(ClassWithNullAttributes), new XamlSchemaContext()),
479
new
SubXamlType
(typeof(ClassWithAliasedAttributes), new XamlSchemaContext()),
485
new
SubXamlType
(typeof(InheritedClassWithAliasedAttributes), new XamlSchemaContext()),
491
new
SubXamlType
(typeof(ClassWithNullAttributes), new XamlSchemaContext()),
511
new
SubXamlType
(typeof(ClassWithAliasedAttributes), new XamlSchemaContext()),
517
new
SubXamlType
(typeof(InheritedClassWithAliasedAttributes), new XamlSchemaContext()),
523
new
SubXamlType
(typeof(ClassWithNullAttributes), new XamlSchemaContext()),
543
new
SubXamlType
(typeof(ClassWithAliasedAttributes), new XamlSchemaContext()),
549
new
SubXamlType
(typeof(InheritedClassWithAliasedAttributes), new XamlSchemaContext()),
555
new
SubXamlType
(typeof(ClassWithNullAttributes), new XamlSchemaContext()),
587
new
SubXamlType
(new ReflectionOnlyCustomAttributeDataType(typeof(int)), new XamlSchemaContext()),
593
new
SubXamlType
(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()),
621
var type = new
SubXamlType
(typeof(int), new XamlSchemaContext());
689
var type = new
SubXamlType
(new CustomType(typeof(int))
728
yield return new object?[] { new
SubXamlType
(typeof(EmptyClass), new XamlSchemaContext()), Array.Empty<XamlMember>() };
729
yield return new object?[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), Array.Empty<XamlMember>() };
734
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
773
new
SubXamlType
(typeof(PrivateAttachableMembersDataClass), new XamlSchemaContext()),
813
new
SubXamlType
(typeof(DuplicateDataClass), new XamlSchemaContext()),
830
new
SubXamlType
(typeof(PrivateDuplicateDataClass), new XamlSchemaContext()),
847
new
SubXamlType
(typeof(NonMatchingInternalSetterClass), new XamlSchemaContext()),
867
new
SubXamlType
(typeof(PrivateNonMatchingInternalSetterClass), new XamlSchemaContext()),
890
new
SubXamlType
(typeof(InternalGetterNonMatchingInternalSetterClass), new XamlSchemaContext()),
1155
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), Array.Empty<XamlMember>() };
1156
yield return new object?[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), Array.Empty<XamlMember>() };
1161
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
1178
new
SubXamlType
(typeof(MoreDerivedShadowedDataClass), new XamlSchemaContext()),
1193
new
SubXamlType
(typeof(PrivateMembersDataClass), new XamlSchemaContext()),
1199
new
SubXamlType
(new CustomType(typeof(MembersDataClass))
1347
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), new XamlType?[] { null } };
1348
yield return new object?[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), new XamlType?[] { null } };
1349
yield return new object?[] { new
SubXamlType
(typeof(List<int>), new XamlSchemaContext()), new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } };
1390
new
SubXamlType
(typeof(ClassWithContentPropertyContentWrapperAttribute), new XamlSchemaContext()),
1396
new
SubXamlType
(typeof(ClassWithContentWrapperAttribute), new XamlSchemaContext()),
1401
new
SubXamlType
(typeof(InheritedClassWithContentWrapperAttribute), new XamlSchemaContext()),
1406
new
SubXamlType
(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithContentWrapperAttribute)), new XamlSchemaContext()),
1411
new
SubXamlType
(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(List<string>)), new XamlSchemaContext()),
1436
var type = new
SubXamlType
(typeof(ClassWithNullContentWrapperAttribute), new XamlSchemaContext());
1502
var type = new
SubXamlType
(new CustomType(typeof(List<int>))
1522
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), "name", null };
1523
yield return new object?[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), "name", null };
1529
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1535
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1541
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1547
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1553
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1559
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1565
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1571
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1577
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1583
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1589
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1595
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1601
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1609
new
SubXamlType
(typeof(PrivateAttachableMembersDataClass), new XamlSchemaContext()),
1615
new
SubXamlType
(typeof(PrivateAttachableMembersDataClass), new XamlSchemaContext()),
1621
new
SubXamlType
(typeof(PrivateAttachableMembersDataClass), new XamlSchemaContext()),
1627
new
SubXamlType
(typeof(PrivateAttachableMembersDataClass), new XamlSchemaContext()),
1635
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1641
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1647
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1653
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1659
new
SubXamlType
(typeof(AttachableMembersDataClass), new XamlSchemaContext()),
1686
var type = new
SubXamlType
(typeof(int), new XamlSchemaContext());
1705
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), new XamlType(typeof(ValueType), new XamlSchemaContext()) };
1706
yield return new object?[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), null };
1707
yield return new object?[] { new
SubXamlType
(typeof(IConvertible), new XamlSchemaContext()), null };
1711
new
SubXamlType
(typeof(CustomXamlSchemaContext), new CustomXamlSchemaContext
1745
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), XamlCollectionKind.None };
1746
yield return new object?[] { new
SubXamlType
(typeof(int[]), new XamlSchemaContext()), XamlCollectionKind.Array };
1747
yield return new object?[] { new
SubXamlType
(typeof(IEnumerable), new XamlSchemaContext()), XamlCollectionKind.None };
1748
yield return new object?[] { new
SubXamlType
(typeof(IEnumerable<int>), new XamlSchemaContext()), XamlCollectionKind.None };
1749
yield return new object?[] { new
SubXamlType
(typeof(ICollection), new XamlSchemaContext()), XamlCollectionKind.None };
1750
yield return new object?[] { new
SubXamlType
(typeof(ICollection<int>), new XamlSchemaContext()), XamlCollectionKind.Collection };
1751
yield return new object?[] { new
SubXamlType
(typeof(IList), new XamlSchemaContext()), XamlCollectionKind.Collection };
1752
yield return new object?[] { new
SubXamlType
(typeof(IList<int>), new XamlSchemaContext()), XamlCollectionKind.Collection };
1753
yield return new object?[] { new
SubXamlType
(typeof(IDictionary), new XamlSchemaContext()), XamlCollectionKind.Dictionary };
1754
yield return new object?[] { new
SubXamlType
(typeof(IDictionary<int, int>), new XamlSchemaContext()), XamlCollectionKind.Dictionary };
1755
yield return new object?[] { new
SubXamlType
(typeof(Collection<int>), new XamlSchemaContext()), XamlCollectionKind.Collection };
1756
yield return new object?[] { new
SubXamlType
(typeof(List<int>), new XamlSchemaContext()), XamlCollectionKind.Collection };
1757
yield return new object?[] { new
SubXamlType
(typeof(GetEnumeratorClass), new XamlSchemaContext()), XamlCollectionKind.Collection };
1758
yield return new object?[] { new
SubXamlType
(typeof(InvalidReturnGetEnumeratorClass), new XamlSchemaContext()), XamlCollectionKind.None };
1759
yield return new object?[] { new
SubXamlType
(typeof(InvalidParametersGetEnumeratorClass), new XamlSchemaContext()), XamlCollectionKind.None };
1760
yield return new object?[] { new
SubXamlType
(typeof(MultiICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.Collection };
1761
yield return new object?[] { new
SubXamlType
(typeof(ICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.Collection };
1762
yield return new object?[] { new
SubXamlType
(typeof(InternalICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.Collection };
1763
yield return new object?[] { new
SubXamlType
(typeof(MoreThanOneICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.Collection };
1764
yield return new object?[] { new
SubXamlType
(typeof(PrivateICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.None };
1765
yield return new object?[] { new
SubXamlType
(typeof(ProtectedICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.None };
1766
yield return new object?[] { new
SubXamlType
(typeof(Dictionary<int, int>), new XamlSchemaContext()), XamlCollectionKind.Dictionary };
1767
yield return new object?[] { new
SubXamlType
(typeof(IDictionaryImplementer), new XamlSchemaContext()), XamlCollectionKind.Dictionary };
1768
yield return new object?[] { new
SubXamlType
(typeof(InternalIDictionaryImplementer), new XamlSchemaContext()), XamlCollectionKind.Dictionary };
1769
yield return new object?[] { new
SubXamlType
(typeof(MoreThanOneIDictionaryImplementer), new XamlSchemaContext()), XamlCollectionKind.Dictionary };
1770
yield return new object?[] { new
SubXamlType
(typeof(PrivateIDictionaryImplementer), new XamlSchemaContext()), XamlCollectionKind.None };
1771
yield return new object?[] { new
SubXamlType
(typeof(ProtectedIDictionaryImplementer), new XamlSchemaContext()), XamlCollectionKind.None };
1910
yield return new object[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), false };
1911
yield return new object[] { new
SubXamlType
(typeof(ClassWithDefaultConstructor), new XamlSchemaContext()), false };
1912
yield return new object[] { new
SubXamlType
(typeof(AbstractClass), new XamlSchemaContext()), true };
1913
yield return new object[] { new
SubXamlType
(typeof(IConvertible), new XamlSchemaContext()), true };
1914
yield return new object[] { new
SubXamlType
(typeof(NestedClass), new XamlSchemaContext()), false };
1915
yield return new object[] { new
SubXamlType
(typeof(ClassWithInternalDefaultConstructor), new XamlSchemaContext()), false };
1916
yield return new object[] { new
SubXamlType
(typeof(ClassWithProtectedDefaultConstructor), new XamlSchemaContext()), true };
1917
yield return new object[] { new
SubXamlType
(typeof(ClassWithPrivateDefaultConstructor), new XamlSchemaContext()), true };
1918
yield return new object[] { new
SubXamlType
(typeof(ClassWithCustomConstructor), new XamlSchemaContext()), true };
1919
yield return new object[] { new
SubXamlType
(typeof(StaticClass), new XamlSchemaContext()), true };
1943
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), null };
1944
yield return new object?[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), null };
1985
new
SubXamlType
(typeof(ClassWithKnownContentPropertyAttribute), new XamlSchemaContext()),
1990
new
SubXamlType
(typeof(ClassWithUnknownContentPropertyAttribute), new XamlSchemaContext()),
1995
new
SubXamlType
(typeof(InheritedClassWithContentPropertyAttribute), new XamlSchemaContext()),
2000
new
SubXamlType
(typeof(ClassWithNullContentPropertyAttribute), new XamlSchemaContext()),
2005
new
SubXamlType
(typeof(ClassWithDefaultContentPropertyAttribute), new XamlSchemaContext()),
2010
new
SubXamlType
(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithUnknownContentPropertyAttribute)), new XamlSchemaContext()),
2015
new
SubXamlType
(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()),
2097
var type = new
SubXamlType
(new CustomType(typeof(int))
2141
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), null };
2142
yield return new object?[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), null };
2143
yield return new object?[] { new
SubXamlType
(typeof(List<int>), new XamlSchemaContext()), null };
2184
new
SubXamlType
(typeof(ClassWithContentWrapperAttribute), new XamlSchemaContext()),
2189
new
SubXamlType
(typeof(InheritedClassWithContentWrapperAttribute), new XamlSchemaContext()),
2194
new
SubXamlType
(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithContentWrapperAttribute)), new XamlSchemaContext()),
2199
new
SubXamlType
(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(List<string>)), new XamlSchemaContext()),
2224
var type = new
SubXamlType
(typeof(ClassWithNullContentWrapperAttribute), new XamlSchemaContext());
2281
var type = new
SubXamlType
(new CustomType(typeof(List<int>))
2314
var type = new
SubXamlType
(typeof(int), new XamlSchemaContext());
2329
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), null };
2330
yield return new object?[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), null };
2371
new
SubXamlType
(typeof(ClassWithTypeXamlDeferLoadAttribute), new XamlSchemaContext()),
2376
new
SubXamlType
(typeof(InheritedClassWithTypeXamlDeferLoadAttribute), new XamlSchemaContext()),
2381
new
SubXamlType
(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithStringXamlDeferLoadAttribute)), new XamlSchemaContext()),
2386
new
SubXamlType
(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()),
2460
var type = new
SubXamlType
(new CustomType(typeof(List<int>))
2483
var type = new
SubXamlType
(underlyingType, new XamlSchemaContext());
2493
var type = new
SubXamlType
(underlyingType, new XamlSchemaContext());
2553
var type = new
SubXamlType
(typeof(int), new XamlSchemaContext());
2573
yield return new object[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), false };
2574
yield return new object[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), false };
2604
new
SubXamlType
(typeof(ClassWithAmbientAttribute), new XamlSchemaContext()),
2609
new
SubXamlType
(typeof(InheritedClassWithAmbientAttribute), new XamlSchemaContext()),
2614
new
SubXamlType
(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithAmbientAttribute)), new XamlSchemaContext()),
2619
new
SubXamlType
(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()),
2656
yield return new object[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), true };
2657
yield return new object[] { new
SubXamlType
(typeof(AbstractClass), new XamlSchemaContext()), false };
2658
yield return new object[] { new
SubXamlType
(typeof(IConvertible), new XamlSchemaContext()), false };
2659
yield return new object[] { new
SubXamlType
(typeof(NestedClass), new XamlSchemaContext()), false };
2660
yield return new object[] { new
SubXamlType
(typeof(List<>), new XamlSchemaContext()), false };
2661
yield return new object[] { new
SubXamlType
(typeof(List<>).GetTypeInfo().GenericTypeParameters[0], new XamlSchemaContext()), false };
2662
yield return new object[] { new
SubXamlType
(typeof(List<int>), new XamlSchemaContext()), true };
2663
yield return new object[] { new
SubXamlType
(typeof(ClassWithDefaultConstructor), new XamlSchemaContext()), true };
2664
yield return new object[] { new
SubXamlType
(typeof(ClassWithInternalDefaultConstructor), new XamlSchemaContext()), true };
2665
yield return new object[] { new
SubXamlType
(typeof(ClassWithProtectedDefaultConstructor), new XamlSchemaContext()), false };
2666
yield return new object[] { new
SubXamlType
(typeof(ClassWithPrivateDefaultConstructor), new XamlSchemaContext()), false };
2667
yield return new object[] { new
SubXamlType
(typeof(ClassWithCustomConstructor), new XamlSchemaContext()), true };
2668
yield return new object[] { new
SubXamlType
(typeof(StaticClass), new XamlSchemaContext()), false };
2694
yield return new object[] { new
SubXamlType
(typeof(MarkupExtension), new XamlSchemaContext()), true };
2695
yield return new object[] { new
SubXamlType
(typeof(ArrayExtension), new XamlSchemaContext()), true };
2696
yield return new object[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), false };
2722
yield return new object?[] { new
SubXamlType
(typeof(INameScope), new XamlSchemaContext()), true };
2723
yield return new object?[] { new
SubXamlType
(typeof(INameScopeDictionary), new XamlSchemaContext()), true };
2724
yield return new object?[] { new
SubXamlType
(typeof(CustomNameScope), new XamlSchemaContext()), true };
2725
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), false };
2779
yield return new object[] { new
SubXamlType
(typeof(int?), new XamlSchemaContext()), true };
2780
yield return new object[] { new
SubXamlType
(typeof(System.Nullable<>), new XamlSchemaContext()), true };
2781
yield return new object[] { new
SubXamlType
(typeof(Nullable<int>), new XamlSchemaContext()), false };
2782
yield return new object[] { new
SubXamlType
(typeof(Generic<int>), new XamlSchemaContext()), false };
2783
yield return new object[] { new
SubXamlType
(typeof(KeyValuePair<int, string>), new XamlSchemaContext()), false };
2784
yield return new object[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), false };
2785
yield return new object[] { new
SubXamlType
(typeof(string), new XamlSchemaContext()), true };
2786
yield return new object[] { new
SubXamlType
(typeof(List<int>), new XamlSchemaContext()), true };
2789
new
SubXamlType
(new ReflectionOnlyType(typeof(Nullable<int>))
2826
yield return new object[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), true };
2827
yield return new object[] { new
SubXamlType
(typeof(Generic<>), new XamlSchemaContext()), false };
2853
yield return new object[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), false, false };
2877
yield return new object[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), false, false };
2878
yield return new object[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), false, false };
2908
new
SubXamlType
(typeof(ClassWithWhitespaceSignificantCollectionAttribute), new XamlSchemaContext()),
2913
new
SubXamlType
(typeof(InheritedClassWithWhitespaceSignificantCollectionAttribute), new XamlSchemaContext()),
2918
new
SubXamlType
(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithWhitespaceSignificantCollectionAttribute)), new XamlSchemaContext()),
2923
new
SubXamlType
(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()),
2960
yield return new object[] { new
SubXamlType
(typeof(IXmlSerializable), new XamlSchemaContext()), true };
2961
yield return new object[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), false };
2985
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), null };
2986
yield return new object?[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), null };
2989
yield return new object?[] { new
SubXamlType
(typeof(int[]), new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()) };
2990
yield return new object?[] { new
SubXamlType
(typeof(IList), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) };
2991
yield return new object?[] { new
SubXamlType
(typeof(List<int>), new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()) };
2992
yield return new object?[] { new
SubXamlType
(typeof(AmbiguousIList), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) };
2993
yield return new object?[] { new
SubXamlType
(typeof(AmbiguousICollection), new XamlSchemaContext()), null };
2994
yield return new object?[] { new
SubXamlType
(typeof(MultiICollectionImplementer), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) };
2995
yield return new object?[] { new
SubXamlType
(typeof(GetEnumeratorClass), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) };
2996
yield return new object?[] { new
SubXamlType
(typeof(IDictionary), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) };
2997
yield return new object?[] { new
SubXamlType
(typeof(Dictionary<int, string>), new XamlSchemaContext()), new XamlType(typeof(string), new XamlSchemaContext()) };
2998
yield return new object?[] { new
SubXamlType
(typeof(AmbiguousIDictionary), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) };
3031
var type = new
SubXamlType
(underlyingType, new XamlSchemaContext());
3040
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), null };
3041
yield return new object?[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), null };
3044
yield return new object?[] { new
SubXamlType
(typeof(int[]), new XamlSchemaContext()), null };
3045
yield return new object?[] { new
SubXamlType
(typeof(IList), new XamlSchemaContext()), null };
3046
yield return new object?[] { new
SubXamlType
(typeof(List<int>), new XamlSchemaContext()), null };
3047
yield return new object?[] { new
SubXamlType
(typeof(AmbiguousIList), new XamlSchemaContext()), null };
3048
yield return new object?[] { new
SubXamlType
(typeof(AmbiguousICollection), new XamlSchemaContext()), null };
3049
yield return new object?[] { new
SubXamlType
(typeof(MultiICollectionImplementer), new XamlSchemaContext()), null };
3050
yield return new object?[] { new
SubXamlType
(typeof(GetEnumeratorClass), new XamlSchemaContext()), null };
3051
yield return new object?[] { new
SubXamlType
(typeof(IDictionary), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) };
3052
yield return new object?[] { new
SubXamlType
(typeof(Dictionary<int, string>), new XamlSchemaContext()), new XamlType(typeof(int), new XamlSchemaContext()) };
3053
yield return new object?[] { new
SubXamlType
(typeof(AmbiguousIDictionary), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) };
3086
var type = new
SubXamlType
(underlyingType, new XamlSchemaContext());
3291
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), null };
3292
yield return new object?[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), null };
3293
yield return new object?[] { new
SubXamlType
(typeof(MarkupExtension), new XamlSchemaContext()), null };
3334
new
SubXamlType
(typeof(ClassWithMarkupExtensionReturnTypeAttribute), new XamlSchemaContext()),
3339
new
SubXamlType
(typeof(InheritedClassWithMarkupExtensionReturnTypeAttribute), new XamlSchemaContext()),
3344
new
SubXamlType
(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithMarkupExtensionReturnTypeAttribute)), new XamlSchemaContext()),
3349
new
SubXamlType
(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(MarkupExtension)), new XamlSchemaContext()),
3374
var type = new
SubXamlType
(typeof(ClassWithNullMarkupExtensionReturnTypeAttribute), new XamlSchemaContext());
3456
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), "name", false, null, null };
3457
yield return new object?[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), "name", false, null, null };
3466
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3473
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3480
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3487
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3494
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3501
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3508
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3515
new
SubXamlType
(typeof(MoreDerivedShadowedDataClass), new XamlSchemaContext()),
3522
new
SubXamlType
(new CustomType(typeof(EvenMoreDerivedShadowedBaseClass))
3537
new
SubXamlType
(new CustomType(typeof(EvenMoreDerivedShadowedBaseClass))
3552
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3559
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3566
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3573
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3580
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3587
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3596
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3603
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3614
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3621
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3628
new
SubXamlType
(typeof(MembersDataClass), new XamlSchemaContext()),
3658
var type = new
SubXamlType
(typeof(int), new XamlSchemaContext());
3675
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), 1, null };
3676
yield return new object?[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), -1, null };
3677
yield return new object?[] { new
SubXamlType
(typeof(MarkupExtension), new XamlSchemaContext()), 1, null };
3680
yield return new object?[] { new
SubXamlType
(typeof(ClassWithCustomConstructor), new XamlSchemaContext()), 1, new XamlType[] { new XamlType(typeof(int), new XamlSchemaContext()) } };
3682
yield return new object?[] { new
SubXamlType
(typeof(TypeExtension), new XamlSchemaContext()), 2, null };
3683
yield return new object?[] { new
SubXamlType
(typeof(TypeExtension), new XamlSchemaContext()), 1, new XamlType[] { new XamlType(typeof(Type), new XamlSchemaContext()) } };
3684
yield return new object?[] { new
SubXamlType
(typeof(TypeExtension), new XamlSchemaContext()), 0, null };
3685
yield return new object?[] { new
SubXamlType
(typeof(TypeExtension), new XamlSchemaContext()), -1, null };
3688
yield return new object?[] { new
SubXamlType
(typeof(ArrayExtension), new XamlSchemaContext(duplicateSupport)), 2, null };
3689
yield return new object?[] { new
SubXamlType
(typeof(ArrayExtension), new XamlSchemaContext(duplicateSupport)), 1, new XamlType[] { new XamlType(typeof(Type), new XamlSchemaContext()) } };
3690
yield return new object?[] { new
SubXamlType
(typeof(ArrayExtension), new XamlSchemaContext(duplicateSupport)), 0, Array.Empty<XamlType>() };
3691
yield return new object?[] { new
SubXamlType
(typeof(ArrayExtension), new XamlSchemaContext(duplicateSupport)), -1, null };
3717
var type = new
SubXamlType
(underlyingType, new XamlSchemaContext());
3726
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), null };
3727
yield return new object?[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), null };
3768
new
SubXamlType
(typeof(ClassWithXamlSetMarkupExtensionAttribute), new XamlSchemaContext()),
3773
new
SubXamlType
(typeof(InheritedClassWithXamlSetMarkupExtensionAttribute), new XamlSchemaContext()),
3778
new
SubXamlType
(typeof(ClassWithNullXamlSetMarkupExtensionAttribute), new XamlSchemaContext()),
3783
new
SubXamlType
(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()),
3861
var type = new
SubXamlType
(new CustomType(typeof(int))
3891
var type = new
SubXamlType
(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithXamlSetMarkupExtensionAttribute)), new XamlSchemaContext());
3925
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), null };
3926
yield return new object?[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), null };
3967
new
SubXamlType
(typeof(ClassWithXamlSetTypeConverterAttribute), new XamlSchemaContext()),
3972
new
SubXamlType
(typeof(InheritedClassWithXamlSetTypeConverterAttribute), new XamlSchemaContext()),
3977
new
SubXamlType
(typeof(ClassWithNullXamlSetTypeConverterAttribute), new XamlSchemaContext()),
3982
new
SubXamlType
(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()),
4060
var type = new
SubXamlType
(new CustomType(typeof(int))
4090
var type = new
SubXamlType
(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithXamlSetTypeConverterAttribute)), new XamlSchemaContext());
4124
yield return new object[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), false };
4125
yield return new object[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), false };
4155
new
SubXamlType
(typeof(ClassWithTrimSurroundingWhitespaceAttribute), new XamlSchemaContext()),
4160
new
SubXamlType
(typeof(InheritedClassWithTrimSurroundingWhitespaceAttribute), new XamlSchemaContext()),
4165
new
SubXamlType
(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithTrimSurroundingWhitespaceAttribute)), new XamlSchemaContext()),
4170
new
SubXamlType
(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()),
4205
yield return new object?[] { new
SubXamlType
(typeof(byte), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(ByteConverter), null) };
4206
yield return new object?[] { new
SubXamlType
(typeof(sbyte), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(SByteConverter), null) };
4207
yield return new object?[] { new
SubXamlType
(typeof(ushort), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(UInt16Converter), null) };
4208
yield return new object?[] { new
SubXamlType
(typeof(short), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(Int16Converter), null) };
4209
yield return new object?[] { new
SubXamlType
(typeof(uint), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(UInt32Converter), null) };
4210
yield return new object?[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(Int32Converter), null) };
4211
yield return new object?[] { new
SubXamlType
(typeof(ulong), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(UInt64Converter), null) };
4212
yield return new object?[] { new
SubXamlType
(typeof(long), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(Int64Converter), null) };
4213
yield return new object?[] { new
SubXamlType
(typeof(char), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(CharConverter), null) };
4214
yield return new object?[] { new
SubXamlType
(typeof(bool), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(BooleanConverter), null) };
4215
yield return new object?[] { new
SubXamlType
(typeof(float), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(SingleConverter), null) };
4216
yield return new object?[] { new
SubXamlType
(typeof(double), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(DoubleConverter), null) };
4217
yield return new object?[] { new
SubXamlType
(typeof(decimal), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(DecimalConverter), null) };
4218
yield return new object?[] { new
SubXamlType
(typeof(string), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(StringConverter), null) };
4219
yield return new object?[] { new
SubXamlType
(typeof(TimeSpan), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(TimeSpanConverter), null) };
4220
yield return new object?[] { new
SubXamlType
(typeof(Guid), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(GuidConverter), null) };
4221
yield return new object?[] { new
SubXamlType
(typeof(CultureInfo), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(CultureInfoConverter), null) };
4222
yield return new object?[] { new
SubXamlType
(typeof(ConsoleColor), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(EnumConverter), new XamlType(typeof(ConsoleColor), new XamlSchemaContext())) };
4223
yield return new object?[] { new
SubXamlType
(typeof(int?), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(typeof(Int32Converter), null) };
4224
yield return new object?[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), new XamlValueConverter<TypeConverter>(null, XamlLanguage.Object) };
4265
new
SubXamlType
(typeof(ClassWithTypeConverterAttribute), new XamlSchemaContext()),
4270
new
SubXamlType
(typeof(StructWithTypeConverterAttribute?), new XamlSchemaContext()),
4275
new
SubXamlType
(typeof(InheritedClassWithTypeConverterAttribute), new XamlSchemaContext()),
4280
new
SubXamlType
(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithStringTypeConverterAttribute)), new XamlSchemaContext()),
4285
new
SubXamlType
(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()),
4359
var type = new
SubXamlType
(new CustomType(typeof(List<int>))
4379
var type = new
SubXamlType
(underlyingType, new XamlSchemaContext());
4387
var type = new
SubXamlType
(typeof(ClassWithNullStringTypeConverterAttribute), new XamlSchemaContext());
4437
var type = new
SubXamlType
(typeof(int), new XamlSchemaContext());
4457
yield return new object[] { new
SubXamlType
(typeof(int), new XamlSchemaContext()), false };
4458
yield return new object[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), false };
4459
yield return new object[] { new
SubXamlType
(typeof(MarkupExtension), new XamlSchemaContext()), false };
4500
new
SubXamlType
(typeof(ClassWithUsableDuringInitializationAttribute), new XamlSchemaContext()),
4505
new
SubXamlType
(typeof(InheritedClassWithUsableDuringInitializationAttribute), new XamlSchemaContext()),
4510
new
SubXamlType
(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithUsableDuringInitializationAttribute)), new XamlSchemaContext()),
4515
new
SubXamlType
(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()),
4600
var type = new
SubXamlType
(new CustomType(typeof(int))
4630
yield return new object?[] { new
SubXamlType
(typeof(int?), new XamlSchemaContext()), null };
4631
yield return new object?[] { new
SubXamlType
(typeof(string), new XamlSchemaContext()), new XamlValueConverter<ValueSerializer>(ValueSerializer.GetSerializerFor(typeof(string))!.GetType(), null) };
4632
yield return new object?[] { new
SubXamlType
(typeof(object), new XamlSchemaContext()), null };
4673
new
SubXamlType
(typeof(ClassWithValueSerializerAttribute), new XamlSchemaContext()),
4678
new
SubXamlType
(typeof(StructWithValueSerializerAttribute?), new XamlSchemaContext()),
4683
new
SubXamlType
(typeof(InheritedClassWithValueSerializerAttribute), new XamlSchemaContext()),
4688
new
SubXamlType
(new ReflectionOnlyCustomAttributeDataType(typeof(ClassWithStringValueSerializerAttribute)), new XamlSchemaContext()),
4693
new
SubXamlType
(new ThrowsCustomAttributeFormatExceptionDelegator(typeof(int)), new XamlSchemaContext()),
4767
var type = new
SubXamlType
(new CustomType(typeof(List<int>))
4785
var type = new
SubXamlType
(typeof(ClassWithNullValueSerializerAttribute), new XamlSchemaContext());
4793
var type = new
SubXamlType
(typeof(ClassWithNullStringValueSerializerAttribute), new XamlSchemaContext());