Table of Contents

Class ReadonlyMemorySerializer<TItem>

Namespace
MongoDB.Bson.Serialization.Serializers
Assembly
MongoDB.Bson.dll

Represents a serializer for ReadOnlyMemory<T>.

public sealed class ReadonlyMemorySerializer<TItem> : MemorySerializerBase<TItem, ReadOnlyMemory<TItem>>, IBsonSerializer<ReadOnlyMemory<TItem>>, IBsonSerializer, IRepresentationConfigurable<MemorySerializerBase<TItem, ReadOnlyMemory<TItem>>>, IRepresentationConfigurable, IHasRepresentationSerializer

Type Parameters

TItem

The type of the item. Only primitive numeric types are supported.

Inheritance
ReadonlyMemorySerializer<TItem>
Implements
Inherited Members
Extension Methods

Constructors

ReadonlyMemorySerializer()

Initializes a new instance of the ReadonlyMemorySerializer<TItem> class.

ReadonlyMemorySerializer(BsonType)

Initializes a new instance of the ReadonlyMemorySerializer<TItem> class.

Methods

CreateMemory(TItem[])

Creates the Memory{TITem} structure.

GetMemory(ReadOnlyMemory<TItem>)

Get the memory structure from TMemory instance.

WithRepresentation(BsonType)

Returns a serializer that has been reconfigured with the specified representation.