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