Skip to content

IDehydrationContext.AddBytes(string, Action<T, IBufferWriter<byte>>, T)

AddBytes(string, Action<T, IBufferWriter<byte>>, T)

abstract
public abstract void AddBytes<T>(string key, Action<T, IBufferWriter<byte>> valueWriter, T value)
Adds a sequence of bytes to the dehydration context, associating the sequence with the provided key.

Parameters

keystring
The key.
valueWriterAction<T, IBufferWriter<byte>>
A delegate used to write the provided value to the context.
valueT
The value to provide to valueWriter.