Class BsonUtils
A static class containing BSON utility methods.
- Inheritance
-
Bson
Utils
- Inherited Members
Methods
- Get
Friendly Type Name(Type) Gets a friendly class name suitable for use in error messages.
- Parse
Hex String(string) Parses a hex string into its equivalent byte array.
- To
Date Time From Milliseconds Since Epoch(long) Converts from number of milliseconds since Unix epoch to DateTime.
- To
Hex Char(int) Converts a value to a hex character.
- To
Hex String(byte[]) Converts a byte array to a hex string.
- To
Local Time(Date Time) Converts a DateTime to local time (with special handling for MinValue and MaxValue).
- To
Milliseconds Since Epoch(Date Time) Converts a DateTime to number of milliseconds since Unix epoch.
- To
Seconds Since Epoch(Date Time) Converts a DateTime to number of seconds since Unix epoch.
- To
Universal Time(Date Time) Converts a DateTime to UTC (with special handling for MinValue and MaxValue).
- Try
Parse Hex String(string, out byte[]) Tries to parse a hex string to a byte array.