8 writes to CurrentType
System.Xaml (8)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (8)
297
_context.
CurrentType
= parentProperty.Type;
358
_context.
CurrentType
= xamlType;
858
_context.
CurrentType
= XamlLanguage.PositionalParameterDescriptor;
1704
ctx.
CurrentType
= GetXamlType(value.GetType());
1709
ctx.
CurrentType
= ctx.ParentType.ItemType;
1713
ctx.
CurrentType
= ctx.ParentProperty.Type;
1966
ctx.
CurrentType
= XamlLanguage.PositionalParameterDescriptor;
2595
ctx.
CurrentType
= itemType;
47 references to CurrentType
System.Xaml (47)
System\Xaml\Context\ServiceProviderContext.cs (1)
300
if (_xamlContext.
CurrentType
== null)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (46)
264
XamlMember parentProperty = (_context.
CurrentType
== null && _context.Depth > 1)
269
XamlType xamlType = (_context.
CurrentType
== null && _context.Depth > 1)
271
: _context.
CurrentType
;
287
if (_context.
CurrentType
!= null)
339
if (_context.
CurrentType
!= null && _context.CurrentProperty == null)
342
_context.
CurrentType
.ToString());
353
if (_context.
CurrentType
!= null)
368
if (!rootType.CanAssignTo(_context.
CurrentType
))
374
if (_context.
CurrentType
.IsCollection || _context.
CurrentType
.IsDictionary)
409
if (_context.
CurrentType
== null)
416
string err = SR.Format(SR.OpenPropertyInCurrentFrame_EO, _context.
CurrentType
.ToString(),
438
XamlType xamlType = _context.
CurrentType
;
442
if (_context.
CurrentType
.IsMarkupExtension)
451
ExecutePendingAdds(_context.
CurrentType
, _context.CurrentInstance);
490
ExecutePendingAdds(_context.
CurrentType
, _context.CurrentInstance);
504
ExecutePendingAdds(_context.
CurrentType
, _context.CurrentInstance);
580
err = SR.Format(SR.TypeHasNoContentProperty, _context.
CurrentType
);
588
err = SR.Format(SR.OpenPropertyInCurrentFrame_SM, _context.
CurrentType
.ToString(),
592
else if (_context.
CurrentType
== null)
616
&& !IsDirectiveAllowedOnNullInstance(_context.CurrentProperty, _context.
CurrentType
))
651
property, _context.
CurrentType
, string.Join(", ", token.NeededNames.ToArray()))));
687
if (_context.
CurrentType
== null)
699
string err = (_context.
CurrentType
!= null)
700
? SR.Format(SR.NoPropertyInCurrentFrame_EM, _context.
CurrentType
.ToString())
732
if (_context.
CurrentType
== null)
739
else if (_context.
CurrentType
== null)
826
string err = (_context.
CurrentType
!= null)
827
? SR.Format(SR.NoPropertyInCurrentFrame_V, value, _context.
CurrentType
.ToString())
901
if (_context.
CurrentType
!= null && _context.CurrentProperty == null)
905
_context.
CurrentType
.ToString());
910
if (_context.
CurrentType
!= null)
937
bool seenStartObject = _context.LiveDepth > 1 || _context.
CurrentType
!= null;
1111
XamlType currentType = ctx.
CurrentType
;
1203
XamlType meType = ctx.
CurrentType
;
1430
XamlType xamlType = ctx.
CurrentType
;
1451
XamlType xamlType = ctx.
CurrentType
;
1487
XamlType xamlType = onParent ? ctx.ParentType : ctx.
CurrentType
;
1586
XamlType xamlType = onParent ? ctx.ParentType : ctx.
CurrentType
;
1740
XamlType type = ctx.
CurrentType
;
1757
XamlType currentType = ctx.
CurrentType
;
1835
Runtime.AddToDictionary(ctx.ParentCollection, ctx.ParentType, value, ctx.
CurrentType
, key);
1877
Runtime.AddToDictionary(ctx.ParentCollection, ctx.ParentType, value, ctx.
CurrentType
, key);
1927
ItemType = ctx.
CurrentType
,
2098
RegisterName(ctx, name, ctx.CurrentInstance, ctx.
CurrentType
,
2178
Type rootInstanceType = (curInstance != null) ? curInstance.GetType() : ctx.
CurrentType
.UnderlyingType;