3 writes to _bag
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.PropertyBagStream.cs (3)
21
internal 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)
29
if (rootRecord.TryGetPrimitiveHashtable(out
_bag
!))
73
if (!
_bag
.Contains(name))
79
object? value =
_bag
[name];
100
_bag
[name] = value;
110
BinaryFormatWriter.WritePrimitiveHashtable(stream,
_bag
);
118
new BinaryFormatter().Serialize(stream,
_bag
);