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.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
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