Share via


PersistentComponentStateSerializer<T> Class

Definition

Provides custom serialization logic for persistent component state values of type T.

public abstract class PersistentComponentStateSerializer<T>
type PersistentComponentStateSerializer<'T> = class
Public MustInherit Class PersistentComponentStateSerializer(Of T)

Type Parameters

T

The type of the value to serialize.

Inheritance
PersistentComponentStateSerializer<T>

Constructors

PersistentComponentStateSerializer<T>()

Methods

Persist(T, IBufferWriter<Byte>)

Serializes the provided value and writes it to the writer.

Restore(ReadOnlySequence<Byte>)

Deserializes a value of type T from the provided data. This method must be synchronous to avoid UI tearing during component state restoration.

Applies to