byte[] to hex

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Water Cooler v2

    #1

    byte[] to hex

    What's the way to convert a byte[4] to a hexadecimal?

  • Jon Skeet [C# MVP]

    #2
    Re: byte[] to hex

    Water Cooler v2 wrote:[color=blue]
    > What's the way to convert a byte[4] to a hexadecimal?[/color]

    Do you mean to a hex string? Convert.ToStrin g(byte[]) is the easiest
    way, although it puts a hyphen between each byte which you may not
    what.

    Jon

    Comment

    Working...