public object Deserialize(MongoDB.Bson.IO.BsonReader bsonReader, System.Type nominalType, IBsonSerializationOptions options) { bsonReader.ReadStartArray(); var x = bsonReader.ReadDouble(); var y = bsonReader.ReadDouble(); bsonReader.ReadEndArray(); return new Vector(x, y); }