Serialize a value.
Declaration Syntax
C# | Visual Basic | Visual C++ |
protected static byte[] ValueToByteArray<T>( T value )
Protected Shared Function ValueToByteArray(Of T) ( _ value As T _ ) As Byte()
protected: generic<typename T> static array<unsigned char>^ ValueToByteArray( T value )
Generic Template Parameters
- T
- The value's data type.
Parameters
- value (T)
- The value to serialize.
Return Value
The serialized version of the value.