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