Click or drag to resize

BsonUtils Class

A static class containing BSON utility methods.
Inheritance Hierarchy
SystemObject
  MongoDB.BsonBsonUtils

Namespace:  MongoDB.Bson
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
Syntax
public static class BsonUtils

The BsonUtils type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetFriendlyTypeName
Gets a friendly class name suitable for use in error messages.
Public methodStatic memberParseHexString
Parses a hex string into its equivalent byte array.
Public methodStatic memberToDateTimeFromMillisecondsSinceEpoch
Converts from number of milliseconds since Unix epoch to DateTime.
Public methodStatic memberToHexChar
Converts a value to a hex character.
Public methodStatic memberToHexString
Converts a byte array to a hex string.
Public methodStatic memberToLocalTime
Converts a DateTime to local time (with special handling for MinValue and MaxValue).
Public methodStatic memberToMillisecondsSinceEpoch
Converts a DateTime to number of milliseconds since Unix epoch.
Public methodStatic memberToUniversalTime
Converts a DateTime to UTC (with special handling for MinValue and MaxValue).
Public methodStatic memberTryParseHexString
Tries to parse a hex string to a byte array.
Top
See Also