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