![]() | Value |
The ValueWriterT type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | ReadValue | Reads a value from the specified reader using the type's IWritable implementation or its IValueWriterT. |
![]() ![]() | WriteValue | Writes the specified value using its IWritable implementation or its IValueWriterT. |
If you attempt to access this class for a type T that does not implement IWritable and that does not have a implementation of IValueWriterT, an NotSupportedException is thrown by the static type initializer of the ValueWriterT class.
Built-in value writers are provided for the following types: SByte, Int16, Int32, Int64, Byte, UInt16, UInt32, UInt64, Decimal, Single, Double, String, DateTime, Boolean, ValueTupleT1, ValueTupleT1, T2, ValueTupleT1, T2, T3, ValueTupleT1, T2, T3, T4, ValueTupleT1, T2, T3, T4, T5, ValueTupleT1, T2, T3, T4, T5, T6, ValueTupleT1, T2, T3, T4, T5, T6, T7ValueTupleT1, T2, T3, T4, T5, T6, T7, TRest, TupleT1, TupleT1, T2, TupleT1, T2, T3, TupleT1, T2, T3, T4, TupleT1, T2, T3, T4, T5, TupleT1, T2, T3, T4, T5, T6, TupleT1, T2, T3, T4, T5, T6, T7 and TupleT1, T2, T3, T4, T5, T6, T7, TRest.
Although value writers support tuples, there may be negative performance implications from using the reference type tuples, as they are read-only and do not support record reuse. Using value tuples is recommended.
The KeyValuePairTKey, TValue structure is not supported by the value writer. Please use the PairTKey, TValue class instead, which provides additional functionality for key/value pairs required by Jumbo.