BsonValue  Conversion OperatorsMongoDB C# Driver API Documentation
Overload List

  NameDescription
Public operatorStatic member(Boolean to BsonValue)
Converts a bool to a BsonValue.
Public operatorStatic member(Byte to BsonValue)
Converts a byte[] to a BsonValue.
Public operatorStatic member(DateTime to BsonValue)
Converts a DateTime to a BsonValue.
Public operatorStatic member(Double to BsonValue)
Converts a double to a BsonValue.
Public operatorStatic member(Enum to BsonValue)
Converts an Enum to a BsonValue.
Public operatorStatic member(Guid to BsonValue)
Converts a Guid to a BsonValue.
Public operatorStatic member(Int32 to BsonValue)
Converts an int to a BsonValue.
Public operatorStatic member(Int64 to BsonValue)
Converts a long to a BsonValue.
Public operatorStatic member(NullableBoolean to BsonValue)
Converts a bool? to a BsonValue.
Public operatorStatic member(NullableDateTime to BsonValue)
Converts a DateTime? to a BsonValue.
Public operatorStatic member(NullableDouble to BsonValue)
Converts a double? to a BsonValue.
Public operatorStatic member(NullableGuid to BsonValue)
Converts a Guid? to a BsonValue.
Public operatorStatic member(NullableInt32 to BsonValue)
Converts an int? to a BsonValue.
Public operatorStatic member(NullableInt64 to BsonValue)
Converts a long? to a BsonValue.
Public operatorStatic member(String to BsonValue)
Converts a string to a BsonValue.
Public operatorStatic member(Regex to BsonValue)
Converts a Regex to a BsonValue.
Public operatorStatic member(ObjectId to BsonValue)
Converts an ObjectId to a BsonValue.
Public operatorStatic member(NullableObjectId to BsonValue)
Converts an ObjectId? to a BsonValue.
Top
See Also

Reference