quick question about converting bytes

How would i go about changing a set of bytes into a big endian unsigned integer. I have already read the bytes into a byte array by the simple name of bytes. Now i just need to convert the 4 bytes in to the afore mentioned type.
[228 byte] By [Nelk] at [2007-12-22]
# 2
Using the IP-address trick is a bit grody. Here's something more readable:

Dim value As UInt32 = &H12345678
Debug.Print("{0:x}", value)
Dim bytes() As Byte = BitConverter.GetBytes(value)
Array.Reverse(bytes)
value = BitConverter.ToUInt32(bytes, 0)
Debug.Print("{0:x}", value)

nobugz at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 3
thank you for the answers, nobugz, i think that answered my question.
Nelk at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic Language...