|
SerializerSaveT Method (T, SerializerCompression)
|
Saves an object to a stream, represented as an array of bytes.
Namespace:
Accord.IO
Assembly:
Accord (in Accord.dll) Version: 3.8.0
Syntax public static byte[] Save<T>(
this T obj,
SerializerCompression compression = SerializerCompression.None
)
<ExtensionAttribute>
Public Shared Function Save(Of T) (
obj As T,
Optional compression As SerializerCompression = SerializerCompression.None
) As Byte()
Request Example
View SourceParameters
- obj
- Type: T
The object to be serialized. - compression (Optional)
- Type: Accord.IOSerializerCompression
The type of compression to use. Default is None.
Type Parameters
- T
Return Value
Type:
ByteUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also