3 writes to _bag
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.PropertyBagStream.cs (3)
21internal PropertyBagStream() => _bag = []; 49_bag = (Hashtable)new BinaryFormatter().Deserialize(stream); // CodeQL[SM03722, SM04191] : BinaryFormatter is intended to be used as a fallback for unsupported types. Users must explicitly opt into this behavior" 60_bag = [];
6 references to _bag
System.Windows.Forms (6)
System\Windows\Forms\ActiveX\AxHost.PropertyBagStream.cs (6)
29if (rootRecord.TryGetPrimitiveHashtable(out _bag!)) 73if (!_bag.Contains(name)) 79object? value = _bag[name]; 100_bag[name] = value; 110BinaryFormatWriter.WritePrimitiveHashtable(stream, _bag); 118new BinaryFormatter().Serialize(stream, _bag);