Click or drag to resize

BsonUtils Methods

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 memberToSecondsSinceEpoch
Converts a DateTime to number of seconds 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