3 writes to _bag
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.PropertyBagStream.cs (3)
21internal PropertyBagStream() => _bag = []; 46_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" 54_bag = [];
6 references to _bag
System.Windows.Forms (6)
System\Windows\Forms\ActiveX\AxHost.PropertyBagStream.cs (6)
29if (rootRecord.TryGetPrimitiveHashtable(out _bag!)) 67if (!_bag.Contains(name)) 73object? value = _bag[name]; 94_bag[name] = value; 104BinaryFormatWriter.WritePrimitiveHashtable(stream, _bag); 112new BinaryFormatter().Serialize(stream, _bag);