Table of Contents

Method ToBoolean

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

ToBoolean()

Converts this BsonValue to a Boolean (using the JavaScript definition of truthiness).

public override bool ToBoolean()

Returns

bool

A Boolean.