Convert some generic vector to vector of Bytes

C# | Visual Basic | Visual C++ |
public static byte[] ToBytes<D>( D[] data )
Public Shared Function ToBytes(Of D) ( _ data As D() _ ) As Byte()
public: generic<typename D> static array<unsigned char>^ ToBytes( array<D>^ data )

- D
- type of the input vector

- data (array< D >[]()[])
- array of data

the byte vector