35 references to IsDictionary
PresentationFramework (3)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
2372
if (parentType.IsCollection || parentType.
IsDictionary
)
2414
if (parentPropertyType != null && (parentPropertyType.IsCollection || parentPropertyType.
IsDictionary
) &&
2452
if (!emitPreamble && parentPropertyType.
IsDictionary
&& elementType.IsMarkupExtension)
System.Xaml (27)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (13)
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
)
1370
grandParentXamlType.
IsDictionary
)
1441
if (dictionaryType is not null && dictionaryType.
IsDictionary
&&
1503
ctx.GrandParentType.
IsDictionary
)
1782
bool inDictionary = ((ctx.ParentProperty == XamlLanguage.Items) && ctx.ParentType.
IsDictionary
);
1803
if (!collectionType.
IsDictionary
)
2009
if (parentProperty.IsDirective && (ppXamlType.IsCollection || ppXamlType.
IsDictionary
))
2654
if (instanceType.
IsDictionary
)
System\Xaml\Parser\XamlPullParser.cs (3)
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
))
System\Xaml\Schema\XamlTypeInvoker.cs (2)
101
if (!_xamlType.
IsDictionary
)
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)
375
if (attachedProperty.Type.
IsDictionary
)
517
if (property.Type.
IsDictionary
)
669
if (memberType.IsCollection || memberType.
IsDictionary
)
1196
if (xamlType.
IsDictionary
)
1687
if (!valueXamlType.IsCollection && !valueXamlType.
IsDictionary
) // always need to serialize items of a collection or dictionary
System\Xaml\XamlType.cs (1)
196
if (!
IsDictionary
)
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 (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
)