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;
1207
ctx.
CurrentInstance
= inst;
1292
ctx.
CurrentInstance
= inst;
1345
ctx.
CurrentInstance
= Runtime.DeferredLoad(
1411
ctx.
CurrentInstance
= inst;
1585
ctx.
CurrentInstance
= me;
1758
ctx.
CurrentInstance
= value;
1762
ctx.
CurrentInstance
= value;
1919
ctx.
CurrentInstance
= key;
2023
ctx.
CurrentInstance
= new PositionalParameterDescriptor(value, false);
2547
owc.
CurrentInstance
= value;
2552
token.TargetContext.
CurrentInstance
= value;
2670
ctx.
CurrentInstance
= pendingAdd.Item;
40 references to CurrentInstance
System.Xaml (40)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (40)
434
bool hasUnresolvedChildren = HasUnresolvedChildren(_context.
CurrentInstance
);
435
bool isFixupToken = _context.
CurrentInstance
is NameFixupToken;
443
if (_context.
CurrentInstance
is null)
449
object instance = _context.
CurrentInstance
;
461
ExecutePendingAdds(_context.CurrentType, _context.
CurrentInstance
);
463
instance = _context.
CurrentInstance
;
476
instance = _context.
CurrentInstance
;
502
ExecutePendingAdds(_context.CurrentType, _context.
CurrentInstance
);
516
ExecutePendingAdds(_context.CurrentType, _context.
CurrentInstance
);
527
_lastInstance = _context.
CurrentInstance
;
626
if (_context.
CurrentInstance
is null)
661
if (property.IsAttachable && _context.
CurrentInstance
is NameFixupToken)
663
NameFixupToken token = (NameFixupToken)_context.
CurrentInstance
;
750
value = _context.
CurrentInstance
;
769
object value = _context.
CurrentInstance
;
805
_lastInstance = _context.
CurrentInstance
;
1273
object value = ctx.
CurrentInstance
;
1338
object value = ctx.
CurrentInstance
;
1469
object inst = ctx.
CurrentInstance
;
1492
object inst = ctx.
CurrentInstance
;
1506
NameFixupToken token = GetTokenForUnresolvedChildren(ctx.
CurrentInstance
,
1606
object inst = onParent ? ctx.ParentInstance : ctx.
CurrentInstance
;
1638
if (inst == ctx.
CurrentInstance
)
1689
object inst = ctx.
CurrentInstance
;
1802
object value = ctx.
CurrentInstance
;
1921
key = ctx.
CurrentInstance
;
1936
object value = ctx.
CurrentInstance
;
2004
object value = ctx.
CurrentInstance
;
2157
RegisterName(ctx, name, ctx.
CurrentInstance
, ctx.CurrentType,
2237
object curInstance = ctx.
CurrentInstance
;
2258
object childThatHasUnresolvedChildren = ctx.
CurrentInstance
;
2349
_nameFixupGraph.AddEndOfParseDependency(token.TargetContext.
CurrentInstance
, token.Target);
2413
!_context.IsOnTheLiveStack(token.TargetContext.
CurrentInstance
))
2416
object convertedInstance = token.TargetContext.
CurrentInstance
;
2546
value = Runtime.CallProvideValue((XAML3.MarkupExtension)owc.
CurrentInstance
, owc.ServiceProviderContext);
2550
value = Logic_CreateFromValue(owc, owc.ParentProperty.TypeConverter, owc.
CurrentInstance
,
2574
ProcessNameFixup_UpdatePendingAddKey(token, owc.
CurrentInstance
);
2578
ProcessNameFixup_UpdatePendingAddItem(token, owc.
CurrentInstance
);
2588
_lastInstance = owc.
CurrentInstance
;
2591
if (owc.
CurrentInstance
is NameFixupToken newToken)