Table of Contents

Class GeoJsonObjectSerializerHelper<TCoordinates>

Namespace
MongoDB.Driver.GeoJsonObjectModel.Serializers
Assembly
MongoDB.Driver.dll

Represents a serializer helper for GeoJsonObjects.

public class GeoJsonObjectSerializerHelper<TCoordinates> : SerializerHelper where TCoordinates : GeoJsonCoordinates

Type Parameters

TCoordinates

The type of the coordinates.

Inheritance
GeoJsonObjectSerializerHelper<TCoordinates>
Inherited Members

Constructors

GeoJsonObjectSerializerHelper(string, params Member[])

Initializes a new instance of the GeoJsonObjectSerializerHelper<TCoordinates> class.

public GeoJsonObjectSerializerHelper(string type, params SerializerHelper.Member[] derivedMembers)

Parameters

type string

The type.

derivedMembers Member[]

The derived members.

Methods

DeserializeBaseMember(BsonDeserializationContext, string, long, GeoJsonObjectArgs<TCoordinates>)

Deserializes a base member.

public void DeserializeBaseMember(BsonDeserializationContext context, string elementName, long flag, GeoJsonObjectArgs<TCoordinates> args)

Parameters

context BsonDeserializationContext

The context.

elementName string

The element name.

flag long

The flag.

args GeoJsonObjectArgs<TCoordinates>

The arguments.

SerializeMembers<TValue>(BsonSerializationContext, TValue, Action<BsonSerializationContext, TValue>)

Serializes the members.

public void SerializeMembers<TValue>(BsonSerializationContext context, TValue value, Action<BsonSerializationContext, TValue> serializeDerivedMembers) where TValue : GeoJsonObject<TCoordinates>

Parameters

context BsonSerializationContext

The context.

value TValue

The value.

serializeDerivedMembers Action<BsonSerializationContext, TValue>

The delegate to serialize the derived members.

Type Parameters

TValue

The type of the value.