8 writes to CurrentType
System.Xaml (8)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (8)
302_context.CurrentType = parentProperty.Type; 364_context.CurrentType = xamlType; 878_context.CurrentType = XamlLanguage.PositionalParameterDescriptor; 1746ctx.CurrentType = GetXamlType(value.GetType()); 1751ctx.CurrentType = ctx.ParentType.ItemType; 1755ctx.CurrentType = ctx.ParentProperty.Type; 2022ctx.CurrentType = XamlLanguage.PositionalParameterDescriptor; 2669ctx.CurrentType = itemType;
47 references to CurrentType
System.Xaml (47)
System\Xaml\Context\ServiceProviderContext.cs (1)
302if (_xamlContext.CurrentType is null)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (46)
269XamlMember parentProperty = (_context.CurrentType is null && _context.Depth > 1) 274XamlType xamlType = (_context.CurrentType is null && _context.Depth > 1) 276: _context.CurrentType; 292if (_context.CurrentType is not null) 345if (_context.CurrentType is not null && _context.CurrentProperty is null) 348_context.CurrentType.ToString()); 359if (_context.CurrentType is not null) 374if (!rootType.CanAssignTo(_context.CurrentType)) 381if (_context.CurrentType.IsCollection || _context.CurrentType.IsDictionary) 418if (_context.CurrentType is null) 426string err = SR.Format(SR.OpenPropertyInCurrentFrame_EO, _context.CurrentType.ToString(), 448XamlType xamlType = _context.CurrentType; 452if (_context.CurrentType.IsMarkupExtension) 461ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 502ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 516ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 593err = SR.Format(SR.TypeHasNoContentProperty, _context.CurrentType); 601err = SR.Format(SR.OpenPropertyInCurrentFrame_SM, _context.CurrentType.ToString(), 605else if (_context.CurrentType is null) 629&& !IsDirectiveAllowedOnNullInstance(_context.CurrentProperty, _context.CurrentType)) 665property, _context.CurrentType, string.Join(", ", token.NeededNames.ToArray())))); 702if (_context.CurrentType is null) 715string err = (_context.CurrentType is not null) 716? SR.Format(SR.NoPropertyInCurrentFrame_EM, _context.CurrentType.ToString()) 748if (_context.CurrentType is null) 756else if (_context.CurrentType is null) 846string err = (_context.CurrentType is not null) 847? SR.Format(SR.NoPropertyInCurrentFrame_V, value, _context.CurrentType.ToString()) 923if (_context.CurrentType is not null && _context.CurrentProperty is null) 927_context.CurrentType.ToString()); 932if (_context.CurrentType is not null) 961bool seenStartObject = _context.LiveDepth > 1 || _context.CurrentType is not null; 1141XamlType currentType = ctx.CurrentType; 1233XamlType meType = ctx.CurrentType; 1470XamlType xamlType = ctx.CurrentType; 1491XamlType xamlType = ctx.CurrentType; 1527XamlType xamlType = onParent ? ctx.ParentType : ctx.CurrentType; 1625XamlType xamlType = onParent ? ctx.ParentType : ctx.CurrentType; 1784XamlType type = ctx.CurrentType; 1801XamlType currentType = ctx.CurrentType; 1882Runtime.AddToDictionary(ctx.ParentCollection, ctx.ParentType, value, ctx.CurrentType, key); 1926Runtime.AddToDictionary(ctx.ParentCollection, ctx.ParentType, value, ctx.CurrentType, key); 1980ItemType = ctx.CurrentType, 2157RegisterName(ctx, name, ctx.CurrentInstance, ctx.CurrentType, 2238Type rootInstanceType = (curInstance is not null) ? curInstance.GetType() : ctx.CurrentType.UnderlyingType;