Class MemorySerializer

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Bson.Serialization.Serializers

Assembly

MongoDB.Bson.dll

Represents a serializer for Memory.

public sealed class MemorySerializer<TItem> : MemorySerializerBase<TItem, Memory<TItem>>, IBsonSerializer<Memory<TItem>>, IBsonSerializer, IRepresentationConfigurable<MemorySerializerBase<TItem, Memory<TItem>>>, IRepresentationConfigurable, IHasRepresentationSerializer

Type Parameters

TItem

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

Inheritance

MemorySerializer

Implements

Inherited Members

Extension Methods

Constructors

MemorySerializer()

Initializes a new instance of the MemorySerializer class.

MemorySerializer(BsonType)

Initializes a new instance of the MemorySerializer class.

Methods

CreateMemory(TItem[])

Creates the Memory{TITem} structure.

GetMemory(Memory)

Get the memory structure from TMemory instance.

WithRepresentation(BsonType)

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