Method WriteRegularExpression
WriteRegularExpression(IBsonWriter, string, BsonRegularExpression)
Writes a BSON regular expression element to the writer.
public static void WriteRegularExpression(this IBsonWriter writer, string name, BsonRegularExpression regex)
Parameters
writerIBsonWriterThe writer.
namestringThe name of the element.
regexBsonRegularExpressionA BsonRegularExpression.