ToHexString() public static method

Converts a byte array to a hex string.
public static ToHexString ( byte bytes ) : string
bytes byte The byte array.
return string
示例#1
0
 /// <summary>
 /// Returns a string representation of the value.
 /// </summary>
 /// <returns>A string representation of the value.</returns>
 public override string ToString()
 {
     return(BsonUtils.ToHexString(ToByteArray()));
 }
示例#2
0
 /// <summary>
 /// Returns a string representation of the binary data.
 /// </summary>
 /// <returns>A string representation of the binary data.</returns>
 public override string ToString()
 {
     return(string.Format("{0}:0x{1}", _subType, BsonUtils.ToHexString(_bytes)));
 }
 /// <summary>
 /// Returns a string representation of the value.
 /// </summary>
 /// <returns>A string representation of the value.</returns>
 public override string ToString()
 {
     return(BsonUtils.ToHexString(Pack(_timestamp, _machine, _pid, _increment)));
 }