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;
1177
ctx.
CurrentInstance
= inst;
1260
ctx.
CurrentInstance
= inst;
1312
ctx.
CurrentInstance
= Runtime.DeferredLoad(
1375
ctx.
CurrentInstance
= inst;
1546
ctx.
CurrentInstance
= me;
1715
ctx.
CurrentInstance
= value;
1719
ctx.
CurrentInstance
= value;
1870
ctx.
CurrentInstance
= key;
1967
ctx.
CurrentInstance
= new PositionalParameterDescriptor(value, false);
2475
owc.
CurrentInstance
= value;
2480
token.TargetContext.
CurrentInstance
= value;
2596
ctx.
CurrentInstance
= pendingAdd.Item;
40 references to CurrentInstance
System.Xaml (40)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (40)
424
bool hasUnresolvedChildren = HasUnresolvedChildren(_context.
CurrentInstance
);
425
bool isFixupToken = _context.
CurrentInstance
is NameFixupToken;
433
if (_context.
CurrentInstance
== null)
439
object instance = _context.
CurrentInstance
;
451
ExecutePendingAdds(_context.CurrentType, _context.
CurrentInstance
);
453
instance = _context.
CurrentInstance
;
464
instance = _context.
CurrentInstance
;
490
ExecutePendingAdds(_context.CurrentType, _context.
CurrentInstance
);
504
ExecutePendingAdds(_context.CurrentType, _context.
CurrentInstance
);
514
_lastInstance = _context.
CurrentInstance
;
613
if (_context.
CurrentInstance
== null)
647
if (property.IsAttachable && _context.
CurrentInstance
is NameFixupToken)
649
NameFixupToken token = (NameFixupToken)_context.
CurrentInstance
;
734
value = _context.
CurrentInstance
;
752
object value = _context.
CurrentInstance
;
787
_lastInstance = _context.
CurrentInstance
;
1243
object value = ctx.
CurrentInstance
;
1304
object value = ctx.
CurrentInstance
;
1429
object inst = ctx.
CurrentInstance
;
1452
object inst = ctx.
CurrentInstance
;
1466
NameFixupToken token = GetTokenForUnresolvedChildren(ctx.
CurrentInstance
,
1567
object inst = onParent ? ctx.ParentInstance : ctx.
CurrentInstance
;
1599
if (inst == ctx.
CurrentInstance
)
1650
object inst = ctx.
CurrentInstance
;
1758
object value = ctx.
CurrentInstance
;
1872
key = ctx.
CurrentInstance
;
1887
object value = ctx.
CurrentInstance
;
1949
object value = ctx.
CurrentInstance
;
2098
RegisterName(ctx, name, ctx.
CurrentInstance
, ctx.CurrentType,
2177
object curInstance = ctx.
CurrentInstance
;
2197
object childThatHasUnresolvedChildren = ctx.
CurrentInstance
;
2284
_nameFixupGraph.AddEndOfParseDependency(token.TargetContext.
CurrentInstance
, token.Target);
2344
!_context.IsOnTheLiveStack(token.TargetContext.
CurrentInstance
))
2347
object convertedInstance = token.TargetContext.
CurrentInstance
;
2474
value = Runtime.CallProvideValue((XAML3.MarkupExtension)owc.
CurrentInstance
, owc.ServiceProviderContext);
2478
value = Logic_CreateFromValue(owc, owc.ParentProperty.TypeConverter, owc.
CurrentInstance
,
2501
ProcessNameFixup_UpdatePendingAddKey(token, owc.
CurrentInstance
);
2505
ProcessNameFixup_UpdatePendingAddItem(token, owc.
CurrentInstance
);
2515
_lastInstance = owc.
CurrentInstance
;
2518
NameFixupToken newToken = owc.
CurrentInstance
as NameFixupToken;