20 writes to CurrentInstance
System.Xaml (20)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (20)
305_context.CurrentInstance = inst ?? throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.GetObjectNull, parentInstance.GetType(), parentProperty.Name))); 380_context.CurrentInstance = _rootObjectInstance; 404_context.CurrentInstance = (XamlReader)templateList.GetReader(); 776_context.CurrentInstance = me; 835_context.CurrentInstance = (XamlReader)templateList.GetReader(); 857_context.CurrentInstance = value; 879_context.CurrentInstance = new PositionalParameterDescriptor(value, true); 885_context.CurrentInstance = value; 1207ctx.CurrentInstance = inst; 1292ctx.CurrentInstance = inst; 1345ctx.CurrentInstance = Runtime.DeferredLoad( 1411ctx.CurrentInstance = inst; 1585ctx.CurrentInstance = me; 1758ctx.CurrentInstance = value; 1762ctx.CurrentInstance = value; 1919ctx.CurrentInstance = key; 2023ctx.CurrentInstance = new PositionalParameterDescriptor(value, false); 2547owc.CurrentInstance = value; 2552token.TargetContext.CurrentInstance = value; 2670ctx.CurrentInstance = pendingAdd.Item;
40 references to CurrentInstance
System.Xaml (40)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (40)
434bool hasUnresolvedChildren = HasUnresolvedChildren(_context.CurrentInstance); 435bool isFixupToken = _context.CurrentInstance is NameFixupToken; 443if (_context.CurrentInstance is null) 449object instance = _context.CurrentInstance; 461ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 463instance = _context.CurrentInstance; 476instance = _context.CurrentInstance; 502ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 516ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 527_lastInstance = _context.CurrentInstance; 626if (_context.CurrentInstance is null) 661if (property.IsAttachable && _context.CurrentInstance is NameFixupToken) 663NameFixupToken token = (NameFixupToken)_context.CurrentInstance; 750value = _context.CurrentInstance; 769object value = _context.CurrentInstance; 805_lastInstance = _context.CurrentInstance; 1273object value = ctx.CurrentInstance; 1338object value = ctx.CurrentInstance; 1469object inst = ctx.CurrentInstance; 1492object inst = ctx.CurrentInstance; 1506NameFixupToken token = GetTokenForUnresolvedChildren(ctx.CurrentInstance, 1606object inst = onParent ? ctx.ParentInstance : ctx.CurrentInstance; 1638if (inst == ctx.CurrentInstance) 1689object inst = ctx.CurrentInstance; 1802object value = ctx.CurrentInstance; 1921key = ctx.CurrentInstance; 1936object value = ctx.CurrentInstance; 2004object value = ctx.CurrentInstance; 2157RegisterName(ctx, name, ctx.CurrentInstance, ctx.CurrentType, 2237object curInstance = ctx.CurrentInstance; 2258object childThatHasUnresolvedChildren = ctx.CurrentInstance; 2349_nameFixupGraph.AddEndOfParseDependency(token.TargetContext.CurrentInstance, token.Target); 2413!_context.IsOnTheLiveStack(token.TargetContext.CurrentInstance)) 2416object convertedInstance = token.TargetContext.CurrentInstance; 2546value = Runtime.CallProvideValue((XAML3.MarkupExtension)owc.CurrentInstance, owc.ServiceProviderContext); 2550value = Logic_CreateFromValue(owc, owc.ParentProperty.TypeConverter, owc.CurrentInstance, 2574ProcessNameFixup_UpdatePendingAddKey(token, owc.CurrentInstance); 2578ProcessNameFixup_UpdatePendingAddItem(token, owc.CurrentInstance); 2588_lastInstance = owc.CurrentInstance; 2591if (owc.CurrentInstance is NameFixupToken newToken)