1 write to PresetValue
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\ExpressionContext.cs (1)
31PresetValue = presetValue;
9 references to PresetValue
System.Windows.Forms.Design (7)
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
171bool isPreset = manager.TryGetContext(out ExpressionContext? ctx) && ReferenceEquals(ctx.PresetValue, value);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
1722if (manager.TryGetContext(out ExpressionContext? ctx) && ReferenceEquals(ctx.PresetValue, value)) 1885if (manager.TryGetContext(out ExpressionContext? ctx) && ReferenceEquals(ctx.PresetValue, value))
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
146if (manager.TryGetContext(out ExpressionContext? context) && context.PresetValue == value &&
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
167if (!manager.TryGetContext(out ExpressionContext? expCtx) || expCtx.PresetValue != value)
System\ComponentModel\Design\Serialization\LocalizationCodeDomSerializer.cs (2)
84callExistingSerializer = tree is not null && tree.PresetValue is not null && tree.PresetValue == value;
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\Serialization\ExpressionContextTests.cs (2)
24Assert.Same(presetValue, context.PresetValue); 40Assert.Null(context.PresetValue);