20 references to ItemType
System.Xaml (18)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (4)
1751
ctx.CurrentType = ctx.ParentType.
ItemType
;
1824
currentType = value is null ? collectionType.
ItemType
: GetXamlType(value.GetType());
1857
XamlType itemType = ctx.ParentType.
ItemType
;
2649
XamlType itemType = pendingAdd.ItemType ?? instanceType.
ItemType
;
System\Xaml\Parser\XamlPullParser.cs (1)
1036
XamlTypeName typeName = new XamlTypeName(propertyType.
ItemType
);
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
393
Type itemType = dictionaryType.
ItemType
.UnderlyingType;
System\Xaml\Schema\XamlTypeInvoker.cs (6)
80
itemType = _xamlType.
ItemType
;
114
itemType = _xamlType.
ItemType
;
144
if (IsUnknown || _xamlType.
ItemType
is null)
150
if (contentType == _xamlType.
ItemType
||
151
(_xamlType.AllowedContentTypes.Count == 1 && contentType.CanAssignTo(_xamlType.
ItemType
)))
167
addMethods.Add(_xamlType.
ItemType
, _xamlType.AddMethod);
System\Xaml\XamlObjectReader.cs (1)
1812
var elementType = type.
ItemType
;
System\Xaml\XamlType.cs (5)
519
if (
ItemType
is null || UnderlyingType is null)
527
if (UnderlyingType is not null &&
ItemType
.UnderlyingType is not null)
530
GetIsReadOnlyMethod(UnderlyingType,
ItemType
.UnderlyingType);
730
result.Add(
ItemType
);
1021
return BaseType.
ItemType
;
System.Xaml.Tests (2)
System\Xaml\XamlTypeTests.cs (2)
3023
Assert.Equal((type.IsArray || type.IsCollection || type.IsDictionary) ? expected ?? XamlLanguage.Object : null, type.
ItemType
);
3033
Assert.Throws<XamlSchemaException>(() => type.
ItemType
);