public byte[] GetBytes<T>(
T value
)
where T : struct, new(), IConvertible
Public Function GetBytes(Of T As {Structure, New, IConvertible}) (
value As T
) As Byte()
public:
generic<typename T>
where T : value class, gcnew(), IConvertible
array<unsigned char>^ GetBytes(
T value
)
ArgumentException | value type is not primitive. |
InvalidOperationException | Cannot get bytes for value type. |