5 references to Write
System.Windows.Forms.Tests (5)
System\Windows\Forms\AxHost.PropertyBagStreamTests.cs (5)
20
HRESULT hr = bag.
Write
("Integer", (VARIANT)42); // CodeQL[SM02229] : Testing legacy feature. This is a safe use of VARIANT because the data is trusted and the types are controlled and validated.
24
hr = bag.
Write
("Object", VARIANT.FromObject(obj)); // CodeQL[SM02229] : Testing legacy feature. This is a safe use of VARIANT because the data is trusted and the types are controlled and validated.
52
HRESULT hr = bag.
Write
("Integer", (VARIANT)42); // CodeQL[SM02229] : Testing legacy feature. This is a safe use of VARIANT because the data is trusted and the types are controlled and validated.
55
hr = bag.
Write
("Object", VARIANT.FromObject(obj));
75
HRESULT hr = bag.
Write
(value.GetType().FullName!, variant); // CodeQL[SM02229] : Testing legacy feature. This is a safe use of VARIANT because the data is trusted and the types are controlled and validated.