35 references to IsDictionary
PresentationFramework (3)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
2373if (parentType.IsCollection || parentType.IsDictionary) 2415if (parentPropertyType != null && (parentPropertyType.IsCollection || parentPropertyType.IsDictionary) && 2453if (!emitPreamble && parentPropertyType.IsDictionary && elementType.IsMarkupExtension)
System.Xaml (27)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (13)
306if (parentProperty.Type.IsCollection || parentProperty.Type.IsDictionary) 381if (_context.CurrentType.IsCollection || _context.CurrentType.IsDictionary) 678if (propertyXamlType.IsCollection || propertyXamlType.IsDictionary) 873if (parentXamlType.IsCollection || parentXamlType.IsDictionary) 1208if (currentType.IsCollection || currentType.IsDictionary) 1297if (xamlType.IsCollection || xamlType.IsDictionary) 1371grandParentXamlType.IsDictionary) 1442if (dictionaryType is not null && dictionaryType.IsDictionary && 1504ctx.GrandParentType.IsDictionary) 1783bool inDictionary = ((ctx.ParentProperty == XamlLanguage.Items) && ctx.ParentType.IsDictionary); 1804if (!collectionType.IsDictionary) 2010if (parentProperty.IsDirective && (ppXamlType.IsCollection || ppXamlType.IsDictionary)) 2655if (instanceType.IsDictionary)
System\Xaml\Parser\XamlPullParser.cs (3)
532if (currentType.IsCollection || currentType.IsDictionary) 881_context.CurrentInContainerDirective = member.IsDirective && (memberXamlType is not null && (memberXamlType.IsCollection || memberXamlType.IsDictionary)); 1062if (!currentProperty.IsDirective && (propertyType.IsCollection || propertyType.IsDictionary))
System\Xaml\Schema\XamlTypeInvoker.cs (2)
102if (!_xamlType.IsDictionary) 220if (!_xamlType.IsCollection && !_xamlType.IsDictionary)
System\Xaml\XamlMarkupExtensionWriter.cs (1)
403(property.IsDirective && (property.Type.IsCollection || property.Type.IsDictionary)))
System\Xaml\XamlObjectReader.cs (5)
376if (attachedProperty.Type.IsDictionary) 518if (property.Type.IsDictionary) 670if (memberType.IsCollection || memberType.IsDictionary) 1197if (xamlType.IsDictionary) 1688if (!valueXamlType.IsCollection && !valueXamlType.IsDictionary) // always need to serialize items of a collection or dictionary
System\Xaml\XamlType.cs (1)
197if (!IsDictionary)
System\Xaml\XamlXmlWriter.cs (2)
1206else if (property.IsDirective && (property.Type is not null && (property.Type.IsCollection || property.Type.IsDictionary))) 1406if (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)