Skip to content

Commit

Permalink
Update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDunn committed Jul 24, 2024
1 parent df1faf8 commit d825e30
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ public partial class AgeBsonSerializer : global::MongoDB.Bson.Serialization.Seri
{
private readonly global::MongoDB.Bson.Serialization.IBsonSerializer<System.Int32> _serializer = global::MongoDB.Bson.Serialization.BsonSerializer.LookupSerializer<System.Int32>();

public override Age Deserialize(global::MongoDB.Bson.Serialization.BsonDeserializationContext context, global::MongoDB.Bson.Serialization.BsonDeserializationArgs args) =>
Deserialize(_serializer.Deserialize(context, args));
public override Age Deserialize(global::MongoDB.Bson.Serialization.BsonDeserializationContext context, global::MongoDB.Bson.Serialization.BsonDeserializationArgs args)
{
var newArgs = new global::MongoDB.Bson.Serialization.BsonDeserializationArgs { NominalType = typeof(System.Int32) };

return Deserialize(_serializer.Deserialize(context, newArgs));
}

public override void Serialize(global::MongoDB.Bson.Serialization.BsonSerializationContext context, global::MongoDB.Bson.Serialization.BsonSerializationArgs args, Age value) =>
_serializer.Serialize(context, args, value.Value);
Expand Down Expand Up @@ -74,8 +78,12 @@ public partial class NameBsonSerializer : global::MongoDB.Bson.Serialization.Ser
{
private readonly global::MongoDB.Bson.Serialization.IBsonSerializer<System.String> _serializer = global::MongoDB.Bson.Serialization.BsonSerializer.LookupSerializer<System.String>();

public override Name Deserialize(global::MongoDB.Bson.Serialization.BsonDeserializationContext context, global::MongoDB.Bson.Serialization.BsonDeserializationArgs args) =>
Deserialize(_serializer.Deserialize(context, args));
public override Name Deserialize(global::MongoDB.Bson.Serialization.BsonDeserializationContext context, global::MongoDB.Bson.Serialization.BsonDeserializationArgs args)
{
var newArgs = new global::MongoDB.Bson.Serialization.BsonDeserializationArgs { NominalType = typeof(System.String) };

return Deserialize(_serializer.Deserialize(context, newArgs));
}

public override void Serialize(global::MongoDB.Bson.Serialization.BsonSerializationContext context, global::MongoDB.Bson.Serialization.BsonSerializationArgs args, Name value) =>
_serializer.Serialize(context, args, value.Value);
Expand Down

0 comments on commit d825e30

Please sign in to comment.