private static BsonSerializationInfo CreateSerializationInfo(Expression node, IBsonSerializer serializer)
 {
     return(new BsonSerializationInfo(
                null,
                serializer,
                node.Type,
                serializer.GetDefaultSerializationOptions()));
 }
 /// <summary>
 /// Registers a serializer with the given expression.
 /// </summary>
 /// <param name="node">The expression.</param>
 /// <param name="serializer">The serializer.</param>
 public void RegisterExpressionSerializer(Expression node, IBsonSerializer serializer)
 {
     _serializationInfoCache[node] = new BsonSerializationInfo(
         null,
         serializer,
         node.Type,
         serializer.GetDefaultSerializationOptions());
 }
 /// <summary>
 /// Registers a serializer with the given expression.
 /// </summary>
 /// <param name="node">The expression.</param>
 /// <param name="serializer">The serializer.</param>
 public void RegisterExpressionSerializer(Expression node, IBsonSerializer serializer)
 {
     _serializationInfoCache[node] = new BsonSerializationInfo(
         null,
         serializer,
         node.Type,
         serializer.GetDefaultSerializationOptions());
 }
Ejemplo n.º 4
0
 IBsonSerializationOptions IBsonSerializer.GetDefaultSerializationOptions()
 {
     return(_classMapSerializer.GetDefaultSerializationOptions());
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Gets the default serialization options for this serializer.
 /// </summary>
 /// <returns>The default serialization options for this serializer.</returns>
 public override IBsonSerializationOptions GetDefaultSerializationOptions()
 {
     return(_serializer.GetDefaultSerializationOptions());
 }
Ejemplo n.º 6
0
 public IBsonSerializationOptions GetDefaultSerializationOptions()
 {
     return(_enumerableSerializer.GetDefaultSerializationOptions());
 }