BinarySerializerTrySerializeValueArrayT Method
Namespace: KGySoft.Serialization.BinaryAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static bool TrySerializeValueArray<T>(
T[] array,
out byte[] result
)
where T : struct, new()
Public Shared Function TrySerializeValueArray(Of T As {Structure, New}) (
array As T(),
<OutAttribute> ByRef result As Byte()
) As Boolean
public:
generic<typename T>
where T : value class, gcnew()
static bool TrySerializeValueArray(
array<T>^ array,
[OutAttribute] array<unsigned char>^% result
)
static member TrySerializeValueArray :
array : 'T[] *
result : byte[] byref -> bool when 'T : struct, new()
- array T
- The array to serialize.
- result Byte
- When this method returns, the byte array representation of the specified array. This parameter is passed uninitialized.
- T
- Element type of the array. Must be a ValueType that has no references.
Boolean, if
T contains no references and could be serialized; otherwise,
.