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