20 references to ItemType
System.Xaml (18)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (4)
1750
ctx.CurrentType = ctx.ParentType.
ItemType
;
1823
currentType = value is null ? collectionType.
ItemType
: GetXamlType(value.GetType());
1856
XamlType itemType = ctx.ParentType.
ItemType
;
2648
XamlType itemType = pendingAdd.ItemType ?? instanceType.
ItemType
;
System\Xaml\Parser\XamlPullParser.cs (1)
1035
XamlTypeName typeName = new XamlTypeName(propertyType.
ItemType
);
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
392
Type itemType = dictionaryType.
ItemType
.UnderlyingType;
System\Xaml\Schema\XamlTypeInvoker.cs (6)
79
itemType = _xamlType.
ItemType
;
113
itemType = _xamlType.
ItemType
;
143
if (IsUnknown || _xamlType.
ItemType
is null)
149
if (contentType == _xamlType.
ItemType
||
150
(_xamlType.AllowedContentTypes.Count == 1 && contentType.CanAssignTo(_xamlType.
ItemType
)))
166
addMethods.Add(_xamlType.
ItemType
, _xamlType.AddMethod);
System\Xaml\XamlObjectReader.cs (1)
1811
var elementType = type.
ItemType
;
System\Xaml\XamlType.cs (5)
518
if (
ItemType
is null || UnderlyingType is null)
526
if (UnderlyingType is not null &&
ItemType
.UnderlyingType is not null)
529
GetIsReadOnlyMethod(UnderlyingType,
ItemType
.UnderlyingType);
729
result.Add(
ItemType
);
1020
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
);