ObjectSerializer
class
Namespace: Orleans.Serialization
Provides methods for serializing and deserializing values which have types which are not statically known.
public sealed class ObjectSerializerConstructors
ObjectSerializer(SerializerSessionPool)Initializes a new instance of theObjectSerializerclass.
Methods
CanSerialize(Type)Returnstrueif the provided type,type, can be serialized, andfalseotherwise.Deserialize(ArraySegment<byte>, SerializerSession, Type)Deserialize a value of typetypefromsource.Deserialize(ArraySegment<byte>, Type)Deserialize a value of typetypefromsource.Deserialize(ReadOnlyMemory<byte>, SerializerSession, Type)Deserialize a value of typetypefromsource.Deserialize(ReadOnlyMemory<byte>, Type)Deserialize a value of typetypefromsource.Deserialize(ReadOnlySequence<byte>, SerializerSession, Type)Deserialize a value of typetypefromsource.Deserialize(ReadOnlySequence<byte>, Type)Deserialize a value of typetypefromsource.Deserialize(ReadOnlySpan<byte>, SerializerSession, Type)Deserialize a value of typetypefromsource.Deserialize(ReadOnlySpan<byte>, Type)Deserialize a value of typetypefromsource.Deserialize(Stream, SerializerSession, Type)Deserialize a value of typetypefromsource.Deserialize(Stream, Type)Deserialize a value of typetypefromsource.Deserialize(byte[], SerializerSession, Type)Deserialize a value of typetypefromsource.Deserialize(byte[], Type)Deserialize a value of typetypefromsource.Deserialize(Reader<TInput>, Type)Deserialize a value of typetypefromsource.Serialize(object?, ArraySegment<byte>, SerializerSession, Type)Serializes the providedvalueintodestination.Serialize(object?, ArraySegment<byte>, Type)Serializes the providedvalueintodestination.Serialize(object?, byte[], SerializerSession, Type)Serializes the providedvalueintodestination.Serialize(object?, byte[], Type)Serializes the providedvalueintodestination.Serialize(object?, Stream, SerializerSession, Type, int)Serializes the providedvalueintodestination.Serialize(object?, Stream, Type, int)Serializes the providedvalueintodestination.Serialize(object?, Memory<byte>, SerializerSession, Type)Serializes the providedvalueintodestination.Serialize(object?, Memory<byte>, Type)Serializes the providedvalueintodestination.Serialize(object?, Span<byte>, SerializerSession, Type)Serializes the providedvalueintodestination.Serialize(object?, Span<byte>, Type)Serializes the providedvalueintodestination.Serialize(object?, TBufferWriter, SerializerSession, Type)Serializes the providedvalueintodestination.Serialize(object?, TBufferWriter, Type)Serializes the providedvalueintodestination.Serialize(object?, Writer<TBufferWriter>, Type)Serializes the providedvalueintodestination.
