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