8 writes to CurrentType
System.Xaml (8)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (8)
302
_context.
CurrentType
= parentProperty.Type;
364
_context.
CurrentType
= xamlType;
878
_context.
CurrentType
= XamlLanguage.PositionalParameterDescriptor;
1746
ctx.
CurrentType
= GetXamlType(value.GetType());
1751
ctx.
CurrentType
= ctx.ParentType.ItemType;
1755
ctx.
CurrentType
= ctx.ParentProperty.Type;
2022
ctx.
CurrentType
= XamlLanguage.PositionalParameterDescriptor;
2669
ctx.
CurrentType
= itemType;
47 references to CurrentType
System.Xaml (47)
System\Xaml\Context\ServiceProviderContext.cs (1)
302
if (_xamlContext.
CurrentType
is null)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (46)
269
XamlMember parentProperty = (_context.
CurrentType
is null && _context.Depth > 1)
274
XamlType xamlType = (_context.
CurrentType
is null && _context.Depth > 1)
276
: _context.
CurrentType
;
292
if (_context.
CurrentType
is not null)
345
if (_context.
CurrentType
is not null && _context.CurrentProperty is null)
348
_context.
CurrentType
.ToString());
359
if (_context.
CurrentType
is not null)
374
if (!rootType.CanAssignTo(_context.
CurrentType
))
381
if (_context.
CurrentType
.IsCollection || _context.
CurrentType
.IsDictionary)
418
if (_context.
CurrentType
is null)
426
string err = SR.Format(SR.OpenPropertyInCurrentFrame_EO, _context.
CurrentType
.ToString(),
448
XamlType xamlType = _context.
CurrentType
;
452
if (_context.
CurrentType
.IsMarkupExtension)
461
ExecutePendingAdds(_context.
CurrentType
, _context.CurrentInstance);
502
ExecutePendingAdds(_context.
CurrentType
, _context.CurrentInstance);
516
ExecutePendingAdds(_context.
CurrentType
, _context.CurrentInstance);
593
err = SR.Format(SR.TypeHasNoContentProperty, _context.
CurrentType
);
601
err = SR.Format(SR.OpenPropertyInCurrentFrame_SM, _context.
CurrentType
.ToString(),
605
else if (_context.
CurrentType
is null)
629
&& !IsDirectiveAllowedOnNullInstance(_context.CurrentProperty, _context.
CurrentType
))
665
property, _context.
CurrentType
, string.Join(", ", token.NeededNames.ToArray()))));
702
if (_context.
CurrentType
is null)
715
string err = (_context.
CurrentType
is not null)
716
? SR.Format(SR.NoPropertyInCurrentFrame_EM, _context.
CurrentType
.ToString())
748
if (_context.
CurrentType
is null)
756
else if (_context.
CurrentType
is null)
846
string err = (_context.
CurrentType
is not null)
847
? SR.Format(SR.NoPropertyInCurrentFrame_V, value, _context.
CurrentType
.ToString())
923
if (_context.
CurrentType
is not null && _context.CurrentProperty is null)
927
_context.
CurrentType
.ToString());
932
if (_context.
CurrentType
is not null)
961
bool seenStartObject = _context.LiveDepth > 1 || _context.
CurrentType
is not null;
1141
XamlType currentType = ctx.
CurrentType
;
1233
XamlType meType = ctx.
CurrentType
;
1470
XamlType xamlType = ctx.
CurrentType
;
1491
XamlType xamlType = ctx.
CurrentType
;
1527
XamlType xamlType = onParent ? ctx.ParentType : ctx.
CurrentType
;
1625
XamlType xamlType = onParent ? ctx.ParentType : ctx.
CurrentType
;
1784
XamlType type = ctx.
CurrentType
;
1801
XamlType currentType = ctx.
CurrentType
;
1882
Runtime.AddToDictionary(ctx.ParentCollection, ctx.ParentType, value, ctx.
CurrentType
, key);
1926
Runtime.AddToDictionary(ctx.ParentCollection, ctx.ParentType, value, ctx.
CurrentType
, key);
1980
ItemType = ctx.
CurrentType
,
2157
RegisterName(ctx, name, ctx.CurrentInstance, ctx.
CurrentType
,
2238
Type rootInstanceType = (curInstance is not null) ? curInstance.GetType() : ctx.
CurrentType
.UnderlyingType;