13 instantiations of ExpressionContext
System.Windows.Forms.Design (8)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
1964
newCtx = new
ExpressionContext
(ctx.Expression, parameters[i].ParameterType, ctx.Owner);
2206
ExpressionContext tree =
new
(propertyRef, property.PropertyType, value);
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\PropertyMemberCodeDomSerializer.cs (3)
180
ExpressionContext tree =
new
(propertyRef, property.PropertyType, value, propertyValue);
248
tree = new
ExpressionContext
(methodRef, property.PropertyType, value);
329
tree = new
ExpressionContext
(propertyRef, property.PropertyType, value);
System.Windows.Forms.Design.Tests (5)
System\ComponentModel\Design\Serialization\ExpressionContextTests.cs (5)
20
ExpressionContext context =
new
(expression, expressionType, owner, presetValue);
36
ExpressionContext context =
new
(expression, expressionType, owner);
46
Assert.Throws<ArgumentNullException>("expression", () => new
ExpressionContext
(null, typeof(int), new object(), new object()));
52
Assert.Throws<ArgumentNullException>("expressionType", () => new
ExpressionContext
(new CodeExpression(), null, new object(), new object()));
58
Assert.Throws<ArgumentNullException>("owner", () => new
ExpressionContext
(new CodeExpression(), typeof(int), null, new object()));
32 references to ExpressionContext
System.Design (1)
artifacts\obj\System.Design.Facade\Release\net9.0\System.Design.Forwards.cs (1)
57
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Design.Serialization.
ExpressionContext
))]
System.Windows.Forms.Design (29)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
171
bool isPreset = manager.TryGetContext(out
ExpressionContext
? ctx) && ReferenceEquals(ctx.PresetValue, value);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (5)
1722
if (manager.TryGetContext(out
ExpressionContext
? ctx) && ReferenceEquals(ctx.PresetValue, value))
1885
if (manager.TryGetContext(out
ExpressionContext
? ctx) && ReferenceEquals(ctx.PresetValue, value))
1958
ExpressionContext
? newCtx = null;
1962
if (manager.TryGetContext(out
ExpressionContext
? ctx))
2206
ExpressionContext
tree = new(propertyRef, property.PropertyType, value);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (7)
146
if (manager.TryGetContext(out
ExpressionContext
? context) && context.PresetValue == value &&
420
ExpressionContext
? newContext = null;
421
if (manager.TryGetContext(out
ExpressionContext
? context))
513
ExpressionContext
? newCtx = null;
515
if (manager.TryGetContext(out
ExpressionContext
? ctx))
589
ExpressionContext
? newContext = null;
591
if (manager.TryGetContext(out
ExpressionContext
? ctx))
System\ComponentModel\Design\Serialization\ComponentCache.ResourceEntry.cs (2)
15
ExpressionContext
? expressionContext)
23
public readonly
ExpressionContext
? ExpressionContext = expressionContext;
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
167
if (!manager.TryGetContext(out
ExpressionContext
? expCtx) || expCtx.PresetValue != value)
System\ComponentModel\Design\Serialization\LocalizationCodeDomSerializer.cs (3)
67
ExpressionContext
? tree = (
ExpressionContext
?)manager.Context[typeof(
ExpressionContext
)];
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (3)
180
ExpressionContext
tree = new(propertyRef, property.PropertyType, value, propertyValue);
242
ExpressionContext
? tree = null;
323
ExpressionContext
? tree = null;
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (3)
170
if (manager.TryGetContext(out
ExpressionContext
? tree))
322
ExpressionContext
? tree = manager.GetContext<
ExpressionContext
>();
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (3)
151
manager.GetContext<
ExpressionContext
>());
676
if (manager.TryGetContext(out
ExpressionContext
? tree) && tree.Expression is CodePropertyReferenceExpression)
721
public string SetValue(IDesignerSerializationManager manager,
ExpressionContext
? tree, object? value, bool forceInvariant, bool shouldSerializeInvariant, bool ensureInvariant, bool applyingCachedResources)
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)
20
ExpressionContext
context = new(expression, expressionType, owner, presetValue);
36
ExpressionContext
context = new(expression, expressionType, owner);