BsonUtils Class |
Namespace: MongoDB.Bson
The BsonUtils type exposes the following members.
Name | Description | |
---|---|---|
GetFriendlyTypeName |
Gets a friendly class name suitable for use in error messages.
| |
ParseHexString |
Parses a hex string into its equivalent byte array.
| |
ToDateTimeFromMillisecondsSinceEpoch |
Converts from number of milliseconds since Unix epoch to DateTime.
| |
ToHexChar |
Converts a value to a hex character.
| |
ToHexString |
Converts a byte array to a hex string.
| |
ToLocalTime |
Converts a DateTime to local time (with special handling for MinValue and MaxValue).
| |
ToMillisecondsSinceEpoch |
Converts a DateTime to number of milliseconds since Unix epoch.
| |
ToUniversalTime |
Converts a DateTime to UTC (with special handling for MinValue and MaxValue).
| |
TryParseHexString |
Tries to parse a hex string to a byte array.
|