20 writes to CurrentInstance
System.Xaml (20)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (20)
304_context.CurrentInstance = inst ?? throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.GetObjectNull, parentInstance.GetType(), parentProperty.Name))); 379_context.CurrentInstance = _rootObjectInstance; 403_context.CurrentInstance = (XamlReader)templateList.GetReader(); 775_context.CurrentInstance = me; 834_context.CurrentInstance = (XamlReader)templateList.GetReader(); 856_context.CurrentInstance = value; 878_context.CurrentInstance = new PositionalParameterDescriptor(value, true); 884_context.CurrentInstance = value; 1206ctx.CurrentInstance = inst; 1291ctx.CurrentInstance = inst; 1344ctx.CurrentInstance = Runtime.DeferredLoad( 1410ctx.CurrentInstance = inst; 1584ctx.CurrentInstance = me; 1757ctx.CurrentInstance = value; 1761ctx.CurrentInstance = value; 1918ctx.CurrentInstance = key; 2022ctx.CurrentInstance = new PositionalParameterDescriptor(value, false); 2546owc.CurrentInstance = value; 2551token.TargetContext.CurrentInstance = value; 2669ctx.CurrentInstance = pendingAdd.Item;
40 references to CurrentInstance
System.Xaml (40)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (40)
433bool hasUnresolvedChildren = HasUnresolvedChildren(_context.CurrentInstance); 434bool isFixupToken = _context.CurrentInstance is NameFixupToken; 442if (_context.CurrentInstance is null) 448object instance = _context.CurrentInstance; 460ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 462instance = _context.CurrentInstance; 475instance = _context.CurrentInstance; 501ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 515ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 526_lastInstance = _context.CurrentInstance; 625if (_context.CurrentInstance is null) 660if (property.IsAttachable && _context.CurrentInstance is NameFixupToken) 662NameFixupToken token = (NameFixupToken)_context.CurrentInstance; 749value = _context.CurrentInstance; 768object value = _context.CurrentInstance; 804_lastInstance = _context.CurrentInstance; 1272object value = ctx.CurrentInstance; 1337object value = ctx.CurrentInstance; 1468object inst = ctx.CurrentInstance; 1491object inst = ctx.CurrentInstance; 1505NameFixupToken token = GetTokenForUnresolvedChildren(ctx.CurrentInstance, 1605object inst = onParent ? ctx.ParentInstance : ctx.CurrentInstance; 1637if (inst == ctx.CurrentInstance) 1688object inst = ctx.CurrentInstance; 1801object value = ctx.CurrentInstance; 1920key = ctx.CurrentInstance; 1935object value = ctx.CurrentInstance; 2003object value = ctx.CurrentInstance; 2156RegisterName(ctx, name, ctx.CurrentInstance, ctx.CurrentType, 2236object curInstance = ctx.CurrentInstance; 2257object childThatHasUnresolvedChildren = ctx.CurrentInstance; 2348_nameFixupGraph.AddEndOfParseDependency(token.TargetContext.CurrentInstance, token.Target); 2412!_context.IsOnTheLiveStack(token.TargetContext.CurrentInstance)) 2415object convertedInstance = token.TargetContext.CurrentInstance; 2545value = Runtime.CallProvideValue((XAML3.MarkupExtension)owc.CurrentInstance, owc.ServiceProviderContext); 2549value = Logic_CreateFromValue(owc, owc.ParentProperty.TypeConverter, owc.CurrentInstance, 2573ProcessNameFixup_UpdatePendingAddKey(token, owc.CurrentInstance); 2577ProcessNameFixup_UpdatePendingAddItem(token, owc.CurrentInstance); 2587_lastInstance = owc.CurrentInstance; 2590if (owc.CurrentInstance is NameFixupToken newToken)