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