9 references to AllowedContentTypes
System.Xaml (3)
System\Xaml\Parser\XamlPullParser.cs (1)
1235
foreach (XamlType allowedType in propertyType.
AllowedContentTypes
)
System\Xaml\Schema\XamlTypeInvoker.cs (2)
151
(_xamlType.
AllowedContentTypes
.Count == 1 && contentType.CanAssignTo(_xamlType.ItemType)))
168
foreach (XamlType type in _xamlType.
AllowedContentTypes
)
System.Xaml.Tests (6)
System\Xaml\XamlTypeTests.cs (6)
1430
Assert.Equal((type.IsCollection || type.IsDictionary) ? expected ?? Array.Empty<XamlType>() : null, type.
AllowedContentTypes
);
1438
Assert.Throws<ArgumentNullException>("type", () => type.
AllowedContentTypes
);
1452
Assert.Throws<NullReferenceException>(() => type.
AllowedContentTypes
);
1466
Assert.Throws<NullReferenceException>(() => type.
AllowedContentTypes
);
1480
Assert.Throws<InvalidCastException>(() => type.
AllowedContentTypes
);
1514
Assert.Throws<XamlSchemaException>(() => type.
AllowedContentTypes
);