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)
161Debug.Assert(_resourceStream is null, "Attempting to close a serialization store with already serialized resources"); 162if (_resourceStream is null) 167new BinaryFormatter().Serialize(_resourceStream, _resources.Data); 227if (_resourceStream is not null) 229_resourceStream.Seek(0, SeekOrigin.Begin); 231Hashtable? 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