Method WriteJavaScript
WriteJavaScript(IBsonWriter, string, string)
Writes a BSON JavaScript element to the writer.
public static void WriteJavaScript(this IBsonWriter writer, string name, string code)
Parameters
writer
IBsonWriterThe writer.
name
stringThe name of the element.
code
stringThe JavaScript code.