20 writes to CurrentInstance
System.Xaml (20)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (20)
300_context.CurrentInstance = inst ?? throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.GetObjectNull, parentInstance.GetType(), parentProperty.Name))); 373_context.CurrentInstance = _rootObjectInstance; 397_context.CurrentInstance = (XamlReader)templateList.GetReader(); 760_context.CurrentInstance = me; 816_context.CurrentInstance = (XamlReader)templateList.GetReader(); 837_context.CurrentInstance = value; 859_context.CurrentInstance = new PositionalParameterDescriptor(value, true); 865_context.CurrentInstance = value; 1177ctx.CurrentInstance = inst; 1260ctx.CurrentInstance = inst; 1312ctx.CurrentInstance = Runtime.DeferredLoad( 1375ctx.CurrentInstance = inst; 1546ctx.CurrentInstance = me; 1715ctx.CurrentInstance = value; 1719ctx.CurrentInstance = value; 1870ctx.CurrentInstance = key; 1967ctx.CurrentInstance = new PositionalParameterDescriptor(value, false); 2475owc.CurrentInstance = value; 2480token.TargetContext.CurrentInstance = value; 2596ctx.CurrentInstance = pendingAdd.Item;
40 references to CurrentInstance
System.Xaml (40)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (40)
424bool hasUnresolvedChildren = HasUnresolvedChildren(_context.CurrentInstance); 425bool isFixupToken = _context.CurrentInstance is NameFixupToken; 433if (_context.CurrentInstance == null) 439object instance = _context.CurrentInstance; 451ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 453instance = _context.CurrentInstance; 464instance = _context.CurrentInstance; 490ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 504ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 514_lastInstance = _context.CurrentInstance; 613if (_context.CurrentInstance == null) 647if (property.IsAttachable && _context.CurrentInstance is NameFixupToken) 649NameFixupToken token = (NameFixupToken)_context.CurrentInstance; 734value = _context.CurrentInstance; 752object value = _context.CurrentInstance; 787_lastInstance = _context.CurrentInstance; 1243object value = ctx.CurrentInstance; 1304object value = ctx.CurrentInstance; 1429object inst = ctx.CurrentInstance; 1452object inst = ctx.CurrentInstance; 1466NameFixupToken token = GetTokenForUnresolvedChildren(ctx.CurrentInstance, 1567object inst = onParent ? ctx.ParentInstance : ctx.CurrentInstance; 1599if (inst == ctx.CurrentInstance) 1650object inst = ctx.CurrentInstance; 1758object value = ctx.CurrentInstance; 1872key = ctx.CurrentInstance; 1887object value = ctx.CurrentInstance; 1949object value = ctx.CurrentInstance; 2098RegisterName(ctx, name, ctx.CurrentInstance, ctx.CurrentType, 2177object curInstance = ctx.CurrentInstance; 2197object childThatHasUnresolvedChildren = ctx.CurrentInstance; 2284_nameFixupGraph.AddEndOfParseDependency(token.TargetContext.CurrentInstance, token.Target); 2344!_context.IsOnTheLiveStack(token.TargetContext.CurrentInstance)) 2347object convertedInstance = token.TargetContext.CurrentInstance; 2474value = Runtime.CallProvideValue((XAML3.MarkupExtension)owc.CurrentInstance, owc.ServiceProviderContext); 2478value = Logic_CreateFromValue(owc, owc.ParentProperty.TypeConverter, owc.CurrentInstance, 2501ProcessNameFixup_UpdatePendingAddKey(token, owc.CurrentInstance); 2505ProcessNameFixup_UpdatePendingAddItem(token, owc.CurrentInstance); 2515_lastInstance = owc.CurrentInstance; 2518NameFixupToken newToken = owc.CurrentInstance as NameFixupToken;