1 write to Owner
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\ExpressionContext.cs (1)
30Owner = owner.OrThrowIfNull();
16 references to Owner
System.Windows.Forms.Design (14)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
1964newCtx = new ExpressionContext(ctx.Expression, parameters[i].ParameterType, ctx.Owner);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (3)
423newContext = new ExpressionContext(context.Expression, elementType, context.Owner); 517newCtx = new ExpressionContext(ctx.Expression, elementType, ctx.Owner); 593newContext = new ExpressionContext(ctx.Expression, elementType, ctx.Owner);
System\ComponentModel\Design\Serialization\LocalizationCodeDomSerializer.cs (4)
111string? name = manager.GetName(tree.Owner); 112CodeExpression? ownerExpression = SerializeToExpression(manager, tree.Owner); 118if (rootContext is not null && rootContext.Value == tree.Owner) 127if (EmitApplyMethod(manager, tree.Owner))
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (5)
678writeValue = prop.ShouldSerializeValue(tree.Owner); 679writeInvariant = !prop.CanResetValue(tree.Owner); 727if (tree.Owner == RootComponent) 733nameBase = manager.GetName(tree.Owner); 736nameBase = referenceService.GetName(tree.Owner);
System\Windows\Forms\Design\TableLayoutControlCollectionCodeDomSerializer.cs (1)
32if (manager.TryGetContext(out ExpressionContext? ctx) && ctx.Expression == targetExpression && ctx.Owner is IComponent comp)
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\Serialization\ExpressionContextTests.cs (2)
23Assert.Same(owner, context.Owner); 39Assert.Same(owner, context.Owner);