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);
28 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 (19)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (19)
55
return Assert.IsType<Dictionary<string,
CodeDomComponentSerializationState
>>(info.GetValue("State", typeof(Dictionary<string, CodeDomComponentSerializationService.CodeDomComponentSerializationState>)));
60
Assert.Null(info.GetValue("State", typeof(Dictionary<string,
CodeDomComponentSerializationState
>)));
138
Dictionary<string,
CodeDomComponentSerializationState
> state = GetState(info);
140
CodeDomComponentSerializationState
valueState1 = state["name1"];
154
CodeDomComponentSerializationState
valueState2 = state["name2"];
241
Dictionary<string,
CodeDomComponentSerializationState
> state = GetState(info);
242
CodeDomComponentSerializationState
valueState = state["name"];
343
Dictionary<string,
CodeDomComponentSerializationState
> state = GetState(info);
344
CodeDomComponentSerializationState
valueState = state["name"];
388
Dictionary<string,
CodeDomComponentSerializationState
> state = GetState(info);
389
CodeDomComponentSerializationState
valueState = state["name"];
439
Dictionary<string,
CodeDomComponentSerializationState
> state = GetState(info);
440
CodeDomComponentSerializationState
valueState = state["name"];
485
Dictionary<string,
CodeDomComponentSerializationState
> state = GetState(info);
486
CodeDomComponentSerializationState
valueState = state["name"];
529
Dictionary<string,
CodeDomComponentSerializationState
> state = GetState(info);
530
CodeDomComponentSerializationState
valueState = state["name"];
578
Dictionary<string,
CodeDomComponentSerializationState
> state = GetState(info);
579
CodeDomComponentSerializationState
valueState = state["name"];