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;
1175
ctx.
CurrentInstance
= inst;
1258
ctx.
CurrentInstance
= inst;
1310
ctx.
CurrentInstance
= Runtime.DeferredLoad(
1373
ctx.
CurrentInstance
= inst;
1544
ctx.
CurrentInstance
= me;
1713
ctx.
CurrentInstance
= value;
1717
ctx.
CurrentInstance
= value;
1868
ctx.
CurrentInstance
= key;
1965
ctx.
CurrentInstance
= new PositionalParameterDescriptor(value, false);
2473
owc.
CurrentInstance
= value;
2478
token.TargetContext.
CurrentInstance
= value;
2594
ctx.
CurrentInstance
= pendingAdd.Item;
40 references to CurrentInstance
System.Xaml (40)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (40)
422
bool hasUnresolvedChildren = HasUnresolvedChildren(_context.
CurrentInstance
);
423
bool isFixupToken = _context.
CurrentInstance
is NameFixupToken;
431
if (_context.
CurrentInstance
is null)
437
object instance = _context.
CurrentInstance
;
449
ExecutePendingAdds(_context.CurrentType, _context.
CurrentInstance
);
451
instance = _context.
CurrentInstance
;
462
instance = _context.
CurrentInstance
;
488
ExecutePendingAdds(_context.CurrentType, _context.
CurrentInstance
);
502
ExecutePendingAdds(_context.CurrentType, _context.
CurrentInstance
);
512
_lastInstance = _context.
CurrentInstance
;
611
if (_context.
CurrentInstance
is null)
645
if (property.IsAttachable && _context.
CurrentInstance
is NameFixupToken)
647
NameFixupToken token = (NameFixupToken)_context.
CurrentInstance
;
732
value = _context.
CurrentInstance
;
750
object value = _context.
CurrentInstance
;
785
_lastInstance = _context.
CurrentInstance
;
1241
object value = ctx.
CurrentInstance
;
1302
object value = ctx.
CurrentInstance
;
1427
object inst = ctx.
CurrentInstance
;
1450
object inst = ctx.
CurrentInstance
;
1464
NameFixupToken token = GetTokenForUnresolvedChildren(ctx.
CurrentInstance
,
1565
object inst = onParent ? ctx.ParentInstance : ctx.
CurrentInstance
;
1597
if (inst == ctx.
CurrentInstance
)
1648
object inst = ctx.
CurrentInstance
;
1756
object value = ctx.
CurrentInstance
;
1870
key = ctx.
CurrentInstance
;
1885
object value = ctx.
CurrentInstance
;
1947
object value = ctx.
CurrentInstance
;
2096
RegisterName(ctx, name, ctx.
CurrentInstance
, ctx.CurrentType,
2175
object curInstance = ctx.
CurrentInstance
;
2195
object childThatHasUnresolvedChildren = ctx.
CurrentInstance
;
2282
_nameFixupGraph.AddEndOfParseDependency(token.TargetContext.
CurrentInstance
, token.Target);
2342
!_context.IsOnTheLiveStack(token.TargetContext.
CurrentInstance
))
2345
object convertedInstance = token.TargetContext.
CurrentInstance
;
2472
value = Runtime.CallProvideValue((XAML3.MarkupExtension)owc.
CurrentInstance
, owc.ServiceProviderContext);
2476
value = Logic_CreateFromValue(owc, owc.ParentProperty.TypeConverter, owc.
CurrentInstance
,
2499
ProcessNameFixup_UpdatePendingAddKey(token, owc.
CurrentInstance
);
2503
ProcessNameFixup_UpdatePendingAddItem(token, owc.
CurrentInstance
);
2513
_lastInstance = owc.
CurrentInstance
;
2516
NameFixupToken newToken = owc.
CurrentInstance
as NameFixupToken;