27 references to IsCollection
PresentationFramework (3)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
1048if (_context.CurrentFrame.XamlType != null && _context.CurrentFrame.XamlType.IsCollection) 2372if (parentType.IsCollection || parentType.IsDictionary) 2417if (parentPropertyType != null && (parentPropertyType.IsCollection || parentPropertyType.IsDictionary) &&
System.Xaml (24)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (8)
299if (parentProperty.Type.IsCollection || parentProperty.Type.IsDictionary) 372if (_context.CurrentType.IsCollection || _context.CurrentType.IsDictionary) 661if (propertyXamlType.IsCollection || propertyXamlType.IsDictionary) 851if (parentXamlType.IsCollection || parentXamlType.IsDictionary) 1176if (currentType.IsCollection || currentType.IsDictionary) 1263if (xamlType.IsCollection || xamlType.IsDictionary) 1805Debug.Assert(ctx.ParentType.IsCollection, "Logic_WillParentCollectionAdd called on a non-collection"); 1953if (parentProperty.IsDirective && (ppXamlType.IsCollection || ppXamlType.IsDictionary))
System\Xaml\Parser\XamlPullParser.cs (4)
500if (currentType.IsCollection || currentType.IsDictionary) 838_context.CurrentInContainerDirective = member.IsDirective && (memberXamlType is not null && (memberXamlType.IsCollection || memberXamlType.IsDictionary)); 1013if (!currentProperty.IsDirective && (propertyType.IsCollection || propertyType.IsDictionary)) 1170if (propertyType.IsCollection)
System\Xaml\Schema\XamlTypeInvoker.cs (3)
68if (!_xamlType.IsCollection) 151if (!_xamlType.IsCollection) 213if (!_xamlType.IsCollection && !_xamlType.IsDictionary)
System\Xaml\XamlMarkupExtensionWriter.cs (1)
398(property.IsDirective && (property.Type.IsCollection || property.Type.IsDictionary)))
System\Xaml\XamlObjectReader.cs (5)
381if (attachedProperty.Type.IsCollection) 521if (property.Type.IsCollection) 668if (memberType.IsCollection || memberType.IsDictionary) 1198else if (xamlType.IsCollection) 1679if (!valueXamlType.IsCollection && !valueXamlType.IsDictionary) // always need to serialize items of a collection or dictionary
System\Xaml\XamlType.cs (1)
246if (!IsCollection)
System\Xaml\XamlXmlWriter.cs (2)
1184else if (property.IsDirective && (property.Type is not null && (property.Type.IsCollection || property.Type.IsDictionary))) 1377if (memberType is not null && !memberType.IsCollection && !memberType.IsDictionary)