BinaryFormatWriter
Writer that writes specific types in binary format without using the BinaryFormatter.
Simple wrapper to ensure the stream is reset to its original position if the
action throws.
Simple wrapper to ensure the stream is reset to its original position if the
func throws or returns false.
Writes the given array in binary format if supported.
Writes the given list in binary format if supported.
Writes the given value to stream, only types that have TypeConverters are supported.
This function is needed for the Clipboard serialization as Clipboard is not using TypeConverters.
Writes the given value if supported.
Tries to write the given hashtable if supported.
Attempts to write a PrimitiveType value in binary format.
Writes the given list in binary format if supported.
Writes a Color in binary format.
Writes a DateTime in binary format.
Writes a decimal in binary format.
Writes a nint in binary format.
Writes a nuint in binary format.
Writes a NotSupportedException in binary format.
Writes a Point in binary format.
Writes a PointF in binary format.
Writes a .NET primitive value in binary format.
Writes a Hashtable of primitive to primitive values to the given stream in binary format.
public static void WritePrimitiveList<T>(Stream stream, List<T> list) where T : ValueType modreq(System.Runtime.InteropServices.UnmanagedType)
Writes a primitive list in binary format.
Writes a Rectangle in binary format.
Writes a RectangleF in binary format.
Writes a Size in binary format.
Writes a SizeF in binary format.
Writes a string in binary format.
Writes a List<T> in binary format.
Writes a TimeSpan in binary format.