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