Class MemorySerializer<TItem>
- Namespace
 - MongoDB.Bson.Serialization.Serializers
 
- Assembly
 - MongoDB.Bson.dll
 
Represents a serializer for Memory<T>.
public sealed class MemorySerializer<TItem> : MemorySerializerBase<TItem, Memory<TItem>>, IBsonSerializer<Memory<TItem>>, IBsonSerializer, IRepresentationConfigurable<MemorySerializerBase<TItem, Memory<TItem>>>, IRepresentationConfigurable, IHasRepresentationSerializer
  Type Parameters
TItemThe type of the item. Only primitive numeric types are supported.
- Inheritance
 - 
      
      SerializerBase<Memory<TItem>>StructSerializerBase<Memory<TItem>>MemorySerializerBase<TItem, Memory<TItem>>MemorySerializer<TItem>
 
- Implements
 - 
      IBsonSerializer<Memory<TItem>>
 
- Inherited Members
 
- Extension Methods
 
Constructors
- MemorySerializer()
 Initializes a new instance of the MemorySerializer<TItem> class.
- MemorySerializer(BsonType)
 Initializes a new instance of the MemorySerializer<TItem> class.
Methods
- CreateMemory(TItem[])
 Creates the Memory{TITem} structure.
- GetMemory(Memory<TItem>)
 Get the memory structure from TMemory instance.
- WithRepresentation(BsonType)
 Returns a serializer that has been reconfigured with the specified representation.