| 
            
              ToolsToByteArrayT Method 
             | 
          
        
         
             Serializes (converts) any object to a byte array.
            
 
    Namespace: 
   Accord.Audio
    Assembly:
   Accord.Audio (in Accord.Audio.dll) Version: 3.8.0
Syntaxpublic static byte[] ToByteArray<T>(
	this T value
)
where T : struct, new()
<ExtensionAttribute>
Public Shared Function ToByteArray(Of T As {Structure, New}) ( 
	value As T
) As Byte() Request Example
		View SourceParameters
- value
 - Type: T
The object to be serialized. 
Type Parameters
- T
 
Return Value
Type: 
ByteThe 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