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
TCoordinatesThe 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
Methods
DeserializeBaseMember(BsonDeserializationContext, string, long, GeoJsonObjectArgs<TCoordinates>)
Deserializes a base member.
public void DeserializeBaseMember(BsonDeserializationContext context, string elementName, long flag, GeoJsonObjectArgs<TCoordinates> args)
Parameters
contextBsonDeserializationContextThe context.
elementNamestringThe element name.
flaglongThe flag.
argsGeoJsonObjectArgs<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
contextBsonSerializationContextThe context.
valueTValueThe value.
serializeDerivedMembersAction<BsonSerializationContext, TValue>The delegate to serialize the derived members.
Type Parameters
TValueThe type of the value.