Click or drag to resize
Accord.NET (logo)

ToolsToByteArrayT Method

Serializes (converts) any object to a byte array.

Namespace:  Accord.Audio
Assembly:  Accord.Audio (in Accord.Audio.dll) Version: 3.7.0
Syntax
public static byte[] ToByteArray<T>(
	this T value
)
where T : struct, new()
Request Example View Source

Parameters

value
Type: T
The object to be serialized.

Type Parameters

T

Return Value

Type: Byte
The byte array containing the serialized object.

Usage 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