8 writes to CurrentType
System.Xaml (8)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (8)
295_context.CurrentType = parentProperty.Type; 356_context.CurrentType = xamlType; 856_context.CurrentType = XamlLanguage.PositionalParameterDescriptor; 1702ctx.CurrentType = GetXamlType(value.GetType()); 1707ctx.CurrentType = ctx.ParentType.ItemType; 1711ctx.CurrentType = ctx.ParentProperty.Type; 1964ctx.CurrentType = XamlLanguage.PositionalParameterDescriptor; 2593ctx.CurrentType = itemType;
47 references to CurrentType
System.Xaml (47)
System\Xaml\Context\ServiceProviderContext.cs (1)
298if (_xamlContext.CurrentType is null)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (46)
262XamlMember parentProperty = (_context.CurrentType is null && _context.Depth > 1) 267XamlType xamlType = (_context.CurrentType is null && _context.Depth > 1) 269: _context.CurrentType; 285if (_context.CurrentType is not null) 337if (_context.CurrentType is not null && _context.CurrentProperty is null) 340_context.CurrentType.ToString()); 351if (_context.CurrentType is not null) 366if (!rootType.CanAssignTo(_context.CurrentType)) 372if (_context.CurrentType.IsCollection || _context.CurrentType.IsDictionary) 407if (_context.CurrentType is null) 414string err = SR.Format(SR.OpenPropertyInCurrentFrame_EO, _context.CurrentType.ToString(), 436XamlType xamlType = _context.CurrentType; 440if (_context.CurrentType.IsMarkupExtension) 449ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 488ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 502ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 578err = SR.Format(SR.TypeHasNoContentProperty, _context.CurrentType); 586err = SR.Format(SR.OpenPropertyInCurrentFrame_SM, _context.CurrentType.ToString(), 590else if (_context.CurrentType is null) 614&& !IsDirectiveAllowedOnNullInstance(_context.CurrentProperty, _context.CurrentType)) 649property, _context.CurrentType, string.Join(", ", token.NeededNames.ToArray())))); 685if (_context.CurrentType is null) 697string err = (_context.CurrentType is not null) 698? SR.Format(SR.NoPropertyInCurrentFrame_EM, _context.CurrentType.ToString()) 730if (_context.CurrentType is null) 737else if (_context.CurrentType is null) 824string err = (_context.CurrentType is not null) 825? SR.Format(SR.NoPropertyInCurrentFrame_V, value, _context.CurrentType.ToString()) 899if (_context.CurrentType is not null && _context.CurrentProperty is null) 903_context.CurrentType.ToString()); 908if (_context.CurrentType is not null) 935bool seenStartObject = _context.LiveDepth > 1 || _context.CurrentType is not null; 1109XamlType currentType = ctx.CurrentType; 1201XamlType meType = ctx.CurrentType; 1428XamlType xamlType = ctx.CurrentType; 1449XamlType xamlType = ctx.CurrentType; 1485XamlType xamlType = onParent ? ctx.ParentType : ctx.CurrentType; 1584XamlType xamlType = onParent ? ctx.ParentType : ctx.CurrentType; 1738XamlType type = ctx.CurrentType; 1755XamlType currentType = ctx.CurrentType; 1833Runtime.AddToDictionary(ctx.ParentCollection, ctx.ParentType, value, ctx.CurrentType, key); 1875Runtime.AddToDictionary(ctx.ParentCollection, ctx.ParentType, value, ctx.CurrentType, key); 1925ItemType = ctx.CurrentType, 2096RegisterName(ctx, name, ctx.CurrentInstance, ctx.CurrentType, 2176Type rootInstanceType = (curInstance is not null) ? curInstance.GetType() : ctx.CurrentType.UnderlyingType;