1 write to _resourceStream
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (1)
164
_resourceStream
= new MemoryStream();
6 references to _resourceStream
System.Windows.Forms.Design (6)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (6)
161
Debug.Assert(
_resourceStream
is null, "Attempting to close a serialization store with already serialized resources");
162
if (
_resourceStream
is null)
167
new BinaryFormatter().Serialize(
_resourceStream
, _resources.Data);
227
if (
_resourceStream
is not null)
229
_resourceStream
.Seek(0, SeekOrigin.Begin);
233
Hashtable? resources = new BinaryFormatter().Deserialize(
_resourceStream
) as Hashtable; // CodeQL[SM03722, SM04191] : The operation is essential for the design experience when users are running their own designers they have created. This cannot be achieved without BinaryFormatter