Table of Contents

Operator implicit operator

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

implicit operator BsonBinaryData(byte[])

Converts a byte array to a BsonBinaryData.

public static implicit operator BsonBinaryData(byte[] bytes)

Parameters

bytes byte[]

A byte array.

Returns

BsonBinaryData

A BsonBinaryData.

implicit operator BsonBinaryData(Guid)

Converts a Guid to a BsonBinaryData.

[Obsolete("Use the BsonBinaryData constructor instead and specify a Guid representation.")]
public static implicit operator BsonBinaryData(Guid value)

Parameters

value Guid

A Guid.

Returns

BsonBinaryData

A BsonBinaryData.