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