8 writes to CurrentType
System.Xaml (8)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (8)
295
_context.
CurrentType
= parentProperty.Type;
356
_context.
CurrentType
= xamlType;
856
_context.
CurrentType
= XamlLanguage.PositionalParameterDescriptor;
1702
ctx.
CurrentType
= GetXamlType(value.GetType());
1707
ctx.
CurrentType
= ctx.ParentType.ItemType;
1711
ctx.
CurrentType
= ctx.ParentProperty.Type;
1964
ctx.
CurrentType
= XamlLanguage.PositionalParameterDescriptor;
2593
ctx.
CurrentType
= itemType;
47 references to CurrentType
System.Xaml (47)
System\Xaml\Context\ServiceProviderContext.cs (1)
298
if (_xamlContext.
CurrentType
is null)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (46)
262
XamlMember parentProperty = (_context.
CurrentType
is null && _context.Depth > 1)
267
XamlType xamlType = (_context.
CurrentType
is null && _context.Depth > 1)
269
: _context.
CurrentType
;
285
if (_context.
CurrentType
is not null)
337
if (_context.
CurrentType
is not null && _context.CurrentProperty is null)
340
_context.
CurrentType
.ToString());
351
if (_context.
CurrentType
is not null)
366
if (!rootType.CanAssignTo(_context.
CurrentType
))
372
if (_context.
CurrentType
.IsCollection || _context.
CurrentType
.IsDictionary)
407
if (_context.
CurrentType
is null)
414
string err = SR.Format(SR.OpenPropertyInCurrentFrame_EO, _context.
CurrentType
.ToString(),
436
XamlType xamlType = _context.
CurrentType
;
440
if (_context.
CurrentType
.IsMarkupExtension)
449
ExecutePendingAdds(_context.
CurrentType
, _context.CurrentInstance);
488
ExecutePendingAdds(_context.
CurrentType
, _context.CurrentInstance);
502
ExecutePendingAdds(_context.
CurrentType
, _context.CurrentInstance);
578
err = SR.Format(SR.TypeHasNoContentProperty, _context.
CurrentType
);
586
err = SR.Format(SR.OpenPropertyInCurrentFrame_SM, _context.
CurrentType
.ToString(),
590
else if (_context.
CurrentType
is null)
614
&& !IsDirectiveAllowedOnNullInstance(_context.CurrentProperty, _context.
CurrentType
))
649
property, _context.
CurrentType
, string.Join(", ", token.NeededNames.ToArray()))));
685
if (_context.
CurrentType
is null)
697
string err = (_context.
CurrentType
is not null)
698
? SR.Format(SR.NoPropertyInCurrentFrame_EM, _context.
CurrentType
.ToString())
730
if (_context.
CurrentType
is null)
737
else if (_context.
CurrentType
is null)
824
string err = (_context.
CurrentType
is not null)
825
? SR.Format(SR.NoPropertyInCurrentFrame_V, value, _context.
CurrentType
.ToString())
899
if (_context.
CurrentType
is not null && _context.CurrentProperty is null)
903
_context.
CurrentType
.ToString());
908
if (_context.
CurrentType
is not null)
935
bool seenStartObject = _context.LiveDepth > 1 || _context.
CurrentType
is not null;
1109
XamlType currentType = ctx.
CurrentType
;
1201
XamlType meType = ctx.
CurrentType
;
1428
XamlType xamlType = ctx.
CurrentType
;
1449
XamlType xamlType = ctx.
CurrentType
;
1485
XamlType xamlType = onParent ? ctx.ParentType : ctx.
CurrentType
;
1584
XamlType xamlType = onParent ? ctx.ParentType : ctx.
CurrentType
;
1738
XamlType type = ctx.
CurrentType
;
1755
XamlType currentType = ctx.
CurrentType
;
1833
Runtime.AddToDictionary(ctx.ParentCollection, ctx.ParentType, value, ctx.
CurrentType
, key);
1875
Runtime.AddToDictionary(ctx.ParentCollection, ctx.ParentType, value, ctx.
CurrentType
, key);
1925
ItemType = ctx.
CurrentType
,
2096
RegisterName(ctx, name, ctx.CurrentInstance, ctx.
CurrentType
,
2176
Type rootInstanceType = (curInstance is not null) ? curInstance.GetType() : ctx.
CurrentType
.UnderlyingType;