1 write to PresetValue
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\ExpressionContext.cs (1)
31
PresetValue
= presetValue;
9 references to PresetValue
System.Windows.Forms.Design (7)
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 (2)
1722
if (manager.TryGetContext(out ExpressionContext? ctx) && ReferenceEquals(ctx.
PresetValue
, value))
1885
if (manager.TryGetContext(out ExpressionContext? ctx) && ReferenceEquals(ctx.
PresetValue
, value))
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
146
if (manager.TryGetContext(out ExpressionContext? context) && context.
PresetValue
== value &&
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
167
if (!manager.TryGetContext(out ExpressionContext? expCtx) || expCtx.
PresetValue
!= value)
System\ComponentModel\Design\Serialization\LocalizationCodeDomSerializer.cs (2)
84
callExistingSerializer = 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)
24
Assert.Same(presetValue, context.
PresetValue
);
40
Assert.Null(context.
PresetValue
);