/// <summary> /// Writes the array to a BsonWriter. /// </summary> /// <param name="bsonWriter">The writer.</param> public new void WriteTo(BsonWriter bsonWriter) { bsonWriter.WriteStartArray(); for (int i = 0; i < values.Count; i++) { values[i].WriteTo(bsonWriter); } bsonWriter.WriteEndArray(); }