20 writes to CurrentInstance
System.Xaml (20)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (20)
298_context.CurrentInstance = inst ?? throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.GetObjectNull, parentInstance.GetType(), parentProperty.Name))); 371_context.CurrentInstance = _rootObjectInstance; 395_context.CurrentInstance = (XamlReader)templateList.GetReader(); 758_context.CurrentInstance = me; 814_context.CurrentInstance = (XamlReader)templateList.GetReader(); 835_context.CurrentInstance = value; 857_context.CurrentInstance = new PositionalParameterDescriptor(value, true); 863_context.CurrentInstance = value; 1175ctx.CurrentInstance = inst; 1258ctx.CurrentInstance = inst; 1310ctx.CurrentInstance = Runtime.DeferredLoad( 1373ctx.CurrentInstance = inst; 1544ctx.CurrentInstance = me; 1713ctx.CurrentInstance = value; 1717ctx.CurrentInstance = value; 1868ctx.CurrentInstance = key; 1965ctx.CurrentInstance = new PositionalParameterDescriptor(value, false); 2473owc.CurrentInstance = value; 2478token.TargetContext.CurrentInstance = value; 2594ctx.CurrentInstance = pendingAdd.Item;
40 references to CurrentInstance
System.Xaml (40)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (40)
422bool hasUnresolvedChildren = HasUnresolvedChildren(_context.CurrentInstance); 423bool isFixupToken = _context.CurrentInstance is NameFixupToken; 431if (_context.CurrentInstance is null) 437object instance = _context.CurrentInstance; 449ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 451instance = _context.CurrentInstance; 462instance = _context.CurrentInstance; 488ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 502ExecutePendingAdds(_context.CurrentType, _context.CurrentInstance); 512_lastInstance = _context.CurrentInstance; 611if (_context.CurrentInstance is null) 645if (property.IsAttachable && _context.CurrentInstance is NameFixupToken) 647NameFixupToken token = (NameFixupToken)_context.CurrentInstance; 732value = _context.CurrentInstance; 750object value = _context.CurrentInstance; 785_lastInstance = _context.CurrentInstance; 1241object value = ctx.CurrentInstance; 1302object value = ctx.CurrentInstance; 1427object inst = ctx.CurrentInstance; 1450object inst = ctx.CurrentInstance; 1464NameFixupToken token = GetTokenForUnresolvedChildren(ctx.CurrentInstance, 1565object inst = onParent ? ctx.ParentInstance : ctx.CurrentInstance; 1597if (inst == ctx.CurrentInstance) 1648object inst = ctx.CurrentInstance; 1756object value = ctx.CurrentInstance; 1870key = ctx.CurrentInstance; 1885object value = ctx.CurrentInstance; 1947object value = ctx.CurrentInstance; 2096RegisterName(ctx, name, ctx.CurrentInstance, ctx.CurrentType, 2175object curInstance = ctx.CurrentInstance; 2195object childThatHasUnresolvedChildren = ctx.CurrentInstance; 2282_nameFixupGraph.AddEndOfParseDependency(token.TargetContext.CurrentInstance, token.Target); 2342!_context.IsOnTheLiveStack(token.TargetContext.CurrentInstance)) 2345object convertedInstance = token.TargetContext.CurrentInstance; 2472value = Runtime.CallProvideValue((XAML3.MarkupExtension)owc.CurrentInstance, owc.ServiceProviderContext); 2476value = Logic_CreateFromValue(owc, owc.ParentProperty.TypeConverter, owc.CurrentInstance, 2499ProcessNameFixup_UpdatePendingAddKey(token, owc.CurrentInstance); 2503ProcessNameFixup_UpdatePendingAddItem(token, owc.CurrentInstance); 2513_lastInstance = owc.CurrentInstance; 2516NameFixupToken newToken = owc.CurrentInstance as NameFixupToken;