31 references to IsCollection
PresentationFramework (3)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
1052
if (_context.CurrentFrame.XamlType != null && _context.CurrentFrame.XamlType.
IsCollection
)
2372
if (parentType.
IsCollection
|| parentType.IsDictionary)
2414
if (parentPropertyType != null && (parentPropertyType.
IsCollection
|| parentPropertyType.IsDictionary) &&
System.Xaml (24)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (8)
305
if (parentProperty.Type.
IsCollection
|| parentProperty.Type.IsDictionary)
380
if (_context.CurrentType.
IsCollection
|| _context.CurrentType.IsDictionary)
677
if (propertyXamlType.
IsCollection
|| propertyXamlType.IsDictionary)
872
if (parentXamlType.
IsCollection
|| parentXamlType.IsDictionary)
1207
if (currentType.
IsCollection
|| currentType.IsDictionary)
1296
if (xamlType.
IsCollection
|| xamlType.IsDictionary)
1852
Debug.Assert(ctx.ParentType.
IsCollection
, "Logic_WillParentCollectionAdd called on a non-collection");
2009
if (parentProperty.IsDirective && (ppXamlType.
IsCollection
|| ppXamlType.IsDictionary))
System\Xaml\Parser\XamlPullParser.cs (4)
531
if (currentType.
IsCollection
|| currentType.IsDictionary)
880
_context.CurrentInContainerDirective = member.IsDirective && (memberXamlType is not null && (memberXamlType.
IsCollection
|| memberXamlType.IsDictionary));
1061
if (!currentProperty.IsDirective && (propertyType.
IsCollection
|| propertyType.IsDictionary))
1232
if (propertyType.
IsCollection
)
System\Xaml\Schema\XamlTypeInvoker.cs (3)
67
if (!_xamlType.
IsCollection
)
156
if (!_xamlType.
IsCollection
)
219
if (!_xamlType.
IsCollection
&& !_xamlType.IsDictionary)
System\Xaml\XamlMarkupExtensionWriter.cs (1)
399
(property.IsDirective && (property.Type.
IsCollection
|| property.Type.IsDictionary)))
System\Xaml\XamlObjectReader.cs (5)
380
if (attachedProperty.Type.
IsCollection
)
522
if (property.Type.
IsCollection
)
669
if (memberType.
IsCollection
|| memberType.IsDictionary)
1200
else if (xamlType.
IsCollection
)
1687
if (!valueXamlType.
IsCollection
&& !valueXamlType.IsDictionary) // always need to serialize items of a collection or dictionary
System\Xaml\XamlType.cs (1)
256
if (!
IsCollection
)
System\Xaml\XamlXmlWriter.cs (2)
1198
else if (property.IsDirective && (property.Type is not null && (property.Type.
IsCollection
|| property.Type.IsDictionary)))
1397
if (memberType is not null && !memberType.
IsCollection
&& !memberType.IsDictionary)
System.Xaml.Tests (4)
System\Xaml\XamlTypeTests.cs (4)
1430
Assert.Equal((type.
IsCollection
|| type.IsDictionary) ? expected ?? Array.Empty<XamlType>() : null, type.AllowedContentTypes);
1795
Assert.Equal(expected == XamlCollectionKind.Collection, type.
IsCollection
);
2218
Assert.Equal(type.
IsCollection
? expected ?? Array.Empty<XamlType>() : expected, type.ContentWrappers);
3023
Assert.Equal((type.IsArray || type.
IsCollection
|| type.IsDictionary) ? expected ?? XamlLanguage.Object : null, type.ItemType);