25 references to BinaryFormatWriter
BinaryFormatTests (14)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (7)
24BinaryFormatWriter.WriteString(stream, testString); 41bool success = BinaryFormatWriter.TryWriteFrameworkObject(stream, value); 75bool success = BinaryFormatWriter.TryWriteDrawingPrimitivesObject(stream, value); 100BinaryFormatWriter.TryWriteFrameworkObject(stream, value).Should().BeTrue(); 132BinaryFormatWriter.TryWriteDrawingPrimitivesObject(stream, value).Should().BeTrue(); 156BinaryFormatWriter.TryWriteFrameworkObject(stream, value).Should().BeFalse(); 164BinaryFormatWriter.TryWriteDrawingPrimitivesObject(stream, Brushes.AliceBlue).Should().BeFalse();
FormatTests\FormattedObject\HashTableTests.cs (4)
91BinaryFormatWriter.TryWriteHashtable(stream, hashtable).Should().BeFalse(); 100BinaryFormatWriter.WritePrimitiveHashtable(stream, hashtable); 121Action action = () => BinaryFormatWriter.WritePrimitiveHashtable(stream, hashtable); 144BinaryFormatWriter.WritePrimitiveHashtable(stream, hashtable);
FormatTests\FormattedObject\ListTests.cs (2)
59BinaryFormatWriter.TryWritePrimitiveList(stream, list).Should().BeTrue(); 75BinaryFormatWriter.TryWritePrimitiveList(stream, list).Should().BeFalse();
FormatTests\FormattedObject\PrimitiveTypeTests.cs (1)
96BinaryFormatWriter.WritePrimitive(stream, value);
PresentationFramework (1)
MS\Internal\DataStreams.cs (1)
126success = BinaryFormatWriter.TryWriteFrameworkObject(byteStream, currentValue);
System.Private.Windows.Core (3)
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (3)
20BinaryFormatWriter.TryWriteFrameworkObject(stream, value) 21|| BinaryFormatWriter.TryWriteJsonData(stream, value) 22|| BinaryFormatWriter.TryWriteDrawingPrimitivesObject(stream, value);
System.Private.Windows.Core.Tests (2)
System\Private\Windows\Ole\BinaryFormatUtilitesTestsBase.cs (1)
23BinaryFormatWriter.TryWriteJsonData(stream, IJsonData.Create(data));
System\Private\Windows\Ole\NativeToManagedAdapterTests.cs (1)
102BinaryFormatWriter.TryWriteJsonData(stream, new JsonData<int[]>() { JsonBytes = JsonSerializer.SerializeToUtf8Bytes(new int[] { 0xBE, 0xAD }) });
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.PropertyBagStream.cs (1)
110BinaryFormatWriter.WritePrimitiveHashtable(stream, _bag);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.PropertyBagStream.cs (1)
83BinaryFormatWriter.WritePrimitiveHashtable(stream, _bag);
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormatWriter.cs (1)
58return BinaryFormatWriter.TryWrite(Write, stream, value);
System.Windows.Forms.Tests (2)
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (2)
49BinaryFormatWriter.TryWriteJsonData(stream, json); 74BinaryFormatWriter.TryWriteJsonData(stream, data);