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;
1206
ctx.
CurrentInstance
= inst;
1291
ctx.
CurrentInstance
= inst;
1344
ctx.
CurrentInstance
= Runtime.DeferredLoad(
1410
ctx.
CurrentInstance
= inst;
1584
ctx.
CurrentInstance
= me;
1757
ctx.
CurrentInstance
= value;
1761
ctx.
CurrentInstance
= value;
1918
ctx.
CurrentInstance
= key;
2022
ctx.
CurrentInstance
= new PositionalParameterDescriptor(value, false);
2546
owc.
CurrentInstance
= value;
2551
token.TargetContext.
CurrentInstance
= value;
2669
ctx.
CurrentInstance
= pendingAdd.Item;
40 references to CurrentInstance
System.Xaml (40)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (40)
433
bool hasUnresolvedChildren = HasUnresolvedChildren(_context.
CurrentInstance
);
434
bool isFixupToken = _context.
CurrentInstance
is NameFixupToken;
442
if (_context.
CurrentInstance
is null)
448
object instance = _context.
CurrentInstance
;
460
ExecutePendingAdds(_context.CurrentType, _context.
CurrentInstance
);
462
instance = _context.
CurrentInstance
;
475
instance = _context.
CurrentInstance
;
501
ExecutePendingAdds(_context.CurrentType, _context.
CurrentInstance
);
515
ExecutePendingAdds(_context.CurrentType, _context.
CurrentInstance
);
526
_lastInstance = _context.
CurrentInstance
;
625
if (_context.
CurrentInstance
is null)
660
if (property.IsAttachable && _context.
CurrentInstance
is NameFixupToken)
662
NameFixupToken token = (NameFixupToken)_context.
CurrentInstance
;
749
value = _context.
CurrentInstance
;
768
object value = _context.
CurrentInstance
;
804
_lastInstance = _context.
CurrentInstance
;
1272
object value = ctx.
CurrentInstance
;
1337
object value = ctx.
CurrentInstance
;
1468
object inst = ctx.
CurrentInstance
;
1491
object inst = ctx.
CurrentInstance
;
1505
NameFixupToken token = GetTokenForUnresolvedChildren(ctx.
CurrentInstance
,
1605
object inst = onParent ? ctx.ParentInstance : ctx.
CurrentInstance
;
1637
if (inst == ctx.
CurrentInstance
)
1688
object inst = ctx.
CurrentInstance
;
1801
object value = ctx.
CurrentInstance
;
1920
key = ctx.
CurrentInstance
;
1935
object value = ctx.
CurrentInstance
;
2003
object value = ctx.
CurrentInstance
;
2156
RegisterName(ctx, name, ctx.
CurrentInstance
, ctx.CurrentType,
2236
object curInstance = ctx.
CurrentInstance
;
2257
object childThatHasUnresolvedChildren = ctx.
CurrentInstance
;
2348
_nameFixupGraph.AddEndOfParseDependency(token.TargetContext.
CurrentInstance
, token.Target);
2412
!_context.IsOnTheLiveStack(token.TargetContext.
CurrentInstance
))
2415
object convertedInstance = token.TargetContext.
CurrentInstance
;
2545
value = Runtime.CallProvideValue((XAML3.MarkupExtension)owc.
CurrentInstance
, owc.ServiceProviderContext);
2549
value = Logic_CreateFromValue(owc, owc.ParentProperty.TypeConverter, owc.
CurrentInstance
,
2573
ProcessNameFixup_UpdatePendingAddKey(token, owc.
CurrentInstance
);
2577
ProcessNameFixup_UpdatePendingAddItem(token, owc.
CurrentInstance
);
2587
_lastInstance = owc.
CurrentInstance
;
2590
if (owc.
CurrentInstance
is NameFixupToken newToken)