1 write to Expression
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\ExpressionContext.cs (1)
28
Expression
= expression.OrThrowIfNull();
12 references to Expression
System.Windows.Forms.Design (10)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (3)
1724
expression = ctx.
Expression
;
1887
CodeExpression expression = ctx.
Expression
;
1964
newCtx = new ExpressionContext(ctx.
Expression
, parameters[i].ParameterType, ctx.Owner);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (4)
152
target = context.
Expression
;
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\ResourceCodeDomSerializer.SerializationResourceManager.cs (2)
676
if (manager.TryGetContext(out ExpressionContext? tree) && tree.
Expression
is CodePropertyReferenceExpression)
740
CodeExpression expression = tree.
Expression
;
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)
21
Assert.Same(expression, context.
Expression
);
37
Assert.Same(expression, context.
Expression
);