35 references to IsDictionary
PresentationFramework (3)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
2372if (parentType.IsCollection || parentType.IsDictionary) 2414if (parentPropertyType != null && (parentPropertyType.IsCollection || parentPropertyType.IsDictionary) && 2452if (!emitPreamble && parentPropertyType.IsDictionary && elementType.IsMarkupExtension)
System.Xaml (27)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (13)
305if (parentProperty.Type.IsCollection || parentProperty.Type.IsDictionary) 380if (_context.CurrentType.IsCollection || _context.CurrentType.IsDictionary) 677if (propertyXamlType.IsCollection || propertyXamlType.IsDictionary) 872if (parentXamlType.IsCollection || parentXamlType.IsDictionary) 1207if (currentType.IsCollection || currentType.IsDictionary) 1296if (xamlType.IsCollection || xamlType.IsDictionary) 1370grandParentXamlType.IsDictionary) 1441if (dictionaryType is not null && dictionaryType.IsDictionary && 1503ctx.GrandParentType.IsDictionary) 1782bool inDictionary = ((ctx.ParentProperty == XamlLanguage.Items) && ctx.ParentType.IsDictionary); 1803if (!collectionType.IsDictionary) 2009if (parentProperty.IsDirective && (ppXamlType.IsCollection || ppXamlType.IsDictionary)) 2654if (instanceType.IsDictionary)
System\Xaml\Parser\XamlPullParser.cs (3)
531if (currentType.IsCollection || currentType.IsDictionary) 880_context.CurrentInContainerDirective = member.IsDirective && (memberXamlType is not null && (memberXamlType.IsCollection || memberXamlType.IsDictionary)); 1061if (!currentProperty.IsDirective && (propertyType.IsCollection || propertyType.IsDictionary))
System\Xaml\Schema\XamlTypeInvoker.cs (2)
101if (!_xamlType.IsDictionary) 219if (!_xamlType.IsCollection && !_xamlType.IsDictionary)
System\Xaml\XamlMarkupExtensionWriter.cs (1)
399(property.IsDirective && (property.Type.IsCollection || property.Type.IsDictionary)))
System\Xaml\XamlObjectReader.cs (5)
375if (attachedProperty.Type.IsDictionary) 517if (property.Type.IsDictionary) 669if (memberType.IsCollection || memberType.IsDictionary) 1196if (xamlType.IsDictionary) 1687if (!valueXamlType.IsCollection && !valueXamlType.IsDictionary) // always need to serialize items of a collection or dictionary
System\Xaml\XamlType.cs (1)
196if (!IsDictionary)
System\Xaml\XamlXmlWriter.cs (2)
1198else if (property.IsDirective && (property.Type is not null && (property.Type.IsCollection || property.Type.IsDictionary))) 1397if (memberType is not null && !memberType.IsCollection && !memberType.IsDictionary)
System.Xaml.Tests (5)
System\Xaml\XamlTypeTests.cs (5)
1430Assert.Equal((type.IsCollection || type.IsDictionary) ? expected ?? Array.Empty<XamlType>() : null, type.AllowedContentTypes); 1796Assert.Equal(expected == XamlCollectionKind.Dictionary, type.IsDictionary); 3023Assert.Equal((type.IsArray || type.IsCollection || type.IsDictionary) ? expected ?? XamlLanguage.Object : null, type.ItemType); 3078Assert.Equal(type.IsDictionary ? expected ?? XamlLanguage.Object : null, type.KeyType); 3088if (type.IsDictionary)