8 writes to CurrentType
System.Xaml (8)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (8)
301
_context.
CurrentType
= parentProperty.Type;
363
_context.
CurrentType
= xamlType;
877
_context.
CurrentType
= XamlLanguage.PositionalParameterDescriptor;
1745
ctx.
CurrentType
= GetXamlType(value.GetType());
1750
ctx.
CurrentType
= ctx.ParentType.ItemType;
1754
ctx.
CurrentType
= ctx.ParentProperty.Type;
2021
ctx.
CurrentType
= XamlLanguage.PositionalParameterDescriptor;
2668
ctx.
CurrentType
= itemType;
47 references to CurrentType
System.Xaml (47)
System\Xaml\Context\ServiceProviderContext.cs (1)
301
if (_xamlContext.
CurrentType
is null)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (46)
268
XamlMember parentProperty = (_context.
CurrentType
is null && _context.Depth > 1)
273
XamlType xamlType = (_context.
CurrentType
is null && _context.Depth > 1)
275
: _context.
CurrentType
;
291
if (_context.
CurrentType
is not null)
344
if (_context.
CurrentType
is not null && _context.CurrentProperty is null)
347
_context.
CurrentType
.ToString());
358
if (_context.
CurrentType
is not null)
373
if (!rootType.CanAssignTo(_context.
CurrentType
))
380
if (_context.
CurrentType
.IsCollection || _context.
CurrentType
.IsDictionary)
417
if (_context.
CurrentType
is null)
425
string err = SR.Format(SR.OpenPropertyInCurrentFrame_EO, _context.
CurrentType
.ToString(),
447
XamlType xamlType = _context.
CurrentType
;
451
if (_context.
CurrentType
.IsMarkupExtension)
460
ExecutePendingAdds(_context.
CurrentType
, _context.CurrentInstance);
501
ExecutePendingAdds(_context.
CurrentType
, _context.CurrentInstance);
515
ExecutePendingAdds(_context.
CurrentType
, _context.CurrentInstance);
592
err = SR.Format(SR.TypeHasNoContentProperty, _context.
CurrentType
);
600
err = SR.Format(SR.OpenPropertyInCurrentFrame_SM, _context.
CurrentType
.ToString(),
604
else if (_context.
CurrentType
is null)
628
&& !IsDirectiveAllowedOnNullInstance(_context.CurrentProperty, _context.
CurrentType
))
664
property, _context.
CurrentType
, string.Join(", ", token.NeededNames.ToArray()))));
701
if (_context.
CurrentType
is null)
714
string err = (_context.
CurrentType
is not null)
715
? SR.Format(SR.NoPropertyInCurrentFrame_EM, _context.
CurrentType
.ToString())
747
if (_context.
CurrentType
is null)
755
else if (_context.
CurrentType
is null)
845
string err = (_context.
CurrentType
is not null)
846
? SR.Format(SR.NoPropertyInCurrentFrame_V, value, _context.
CurrentType
.ToString())
922
if (_context.
CurrentType
is not null && _context.CurrentProperty is null)
926
_context.
CurrentType
.ToString());
931
if (_context.
CurrentType
is not null)
960
bool seenStartObject = _context.LiveDepth > 1 || _context.
CurrentType
is not null;
1140
XamlType currentType = ctx.
CurrentType
;
1232
XamlType meType = ctx.
CurrentType
;
1469
XamlType xamlType = ctx.
CurrentType
;
1490
XamlType xamlType = ctx.
CurrentType
;
1526
XamlType xamlType = onParent ? ctx.ParentType : ctx.
CurrentType
;
1624
XamlType xamlType = onParent ? ctx.ParentType : ctx.
CurrentType
;
1783
XamlType type = ctx.
CurrentType
;
1800
XamlType currentType = ctx.
CurrentType
;
1881
Runtime.AddToDictionary(ctx.ParentCollection, ctx.ParentType, value, ctx.
CurrentType
, key);
1925
Runtime.AddToDictionary(ctx.ParentCollection, ctx.ParentType, value, ctx.
CurrentType
, key);
1979
ItemType = ctx.
CurrentType
,
2156
RegisterName(ctx, name, ctx.CurrentInstance, ctx.
CurrentType
,
2237
Type rootInstanceType = (curInstance is not null) ? curInstance.GetType() : ctx.
CurrentType
.UnderlyingType;