BinarySerializerTrySerializeValueType Method

Overload List

TrySerializeValueType(ValueType, Byte) Tries to serialize a ValueType into a byte array. The operation will succeed if the type of the specified instance does not contain any references.
See also the Remarks section of the SerializeValueType(ValueType) method for details.
TrySerializeValueTypeT(T, Byte) Tries to serialize the specified value into a byte array. The operation will succeed if T does not contain any references.
See the Remarks section of the SerializeValueTypeT(T) method for details.

See Also