Operator implicit operator
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
GuidA Guid.
Returns
- BsonBinaryData
A BsonBinaryData.