1 instantiation of CodeDomComponentSerializationState
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
640
objectState[data._name] = new
CodeDomComponentSerializationState
(code, ctxStatements, defaultPropList, resources, defaultEventList, modifier);
29 references to CodeDomComponentSerializationState
System.Windows.Forms.Design (9)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (7)
21
private Dictionary<string,
CodeDomComponentSerializationState
>? _objectState; // only used during deserialization
68
internal void Deserialize(IDesignerSerializationManager manager, Dictionary<string,
CodeDomComponentSerializationState
> objectState, List<string> objectNames, bool applyDefaults)
75
if (objectState.TryGetValue(name, out
CodeDomComponentSerializationState
? state))
342
if (_objectState!.Remove(name, out
CodeDomComponentSerializationState
? state))
387
if (resolved && _objectState!.TryGetValue(name, out
CodeDomComponentSerializationState
? state))
403
private void DeserializeState(IDesignerSerializationManager manager, string name,
CodeDomComponentSerializationState
state)
490
internal void Serialize(IDesignerSerializationManager manager, Dictionary<object, ObjectData> objectData, Dictionary<string,
CodeDomComponentSerializationState
> objectState, IList shimObjectNames)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (2)
45
private Dictionary<string,
CodeDomComponentSerializationState
>? _objectState;
136
Dictionary<string,
CodeDomComponentSerializationState
> state = new(_objects.Count);
System.Windows.Forms.Design.Tests (20)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (20)
59
return Assert.IsType<Dictionary<string,
CodeDomComponentSerializationState
>>(info.GetValue("State", typeof(Dictionary<string,
CodeDomComponentSerializationState
>)));
64
Assert.Null(info.GetValue("State", typeof(Dictionary<string,
CodeDomComponentSerializationState
>)));
142
Dictionary<string,
CodeDomComponentSerializationState
> state = GetState(info);
144
CodeDomComponentSerializationState
valueState1 = state["name1"];
158
CodeDomComponentSerializationState
valueState2 = state["name2"];
245
Dictionary<string,
CodeDomComponentSerializationState
> state = GetState(info);
246
CodeDomComponentSerializationState
valueState = state["name"];
347
Dictionary<string,
CodeDomComponentSerializationState
> state = GetState(info);
348
CodeDomComponentSerializationState
valueState = state["name"];
392
Dictionary<string,
CodeDomComponentSerializationState
> state = GetState(info);
393
CodeDomComponentSerializationState
valueState = state["name"];
443
Dictionary<string,
CodeDomComponentSerializationState
> state = GetState(info);
444
CodeDomComponentSerializationState
valueState = state["name"];
489
Dictionary<string,
CodeDomComponentSerializationState
> state = GetState(info);
490
CodeDomComponentSerializationState
valueState = state["name"];
533
Dictionary<string,
CodeDomComponentSerializationState
> state = GetState(info);
534
CodeDomComponentSerializationState
valueState = state["name"];
582
Dictionary<string,
CodeDomComponentSerializationState
> state = GetState(info);
583
CodeDomComponentSerializationState
valueState = state["name"];