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
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
BsonDeserializationContextThe context.
elementName
stringThe element name.
flag
longThe 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
BsonSerializationContextThe context.
value
TValueThe value.
serializeDerivedMembers
Action<BsonSerializationContext, TValue>The delegate to serialize the derived members.
Type Parameters
TValue
The type of the value.