SerializationWriterWriteOptimized Method (Object, Object) |
Writes a pair of object[] arrays into the stream using the fewest number of bytes possible.
The arrays must not be null and must have the same length
The first array's values are written optimized
The second array's values are compared against the first and, where identical, will be stored
using a single byte.
Useful for storing entity data where there is a before-change and after-change set of value pairs
and, typically, only a few of the values will have changed.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.10.0.0 (5.10.0)
Syntax public void WriteOptimized(
Object[] values1,
Object[] values2
)
Public Sub WriteOptimized (
values1 As Object(),
values2 As Object()
)
Parameters
- values1
- Type: SystemObject
The first object[] value which must not be null and must have the same length as values2 - values2
- Type: SystemObject
The second object[] value which must not be null and must have the same length as values1
See Also