Convert Bytes To UInt
using System.IO; using System.Reflection; internal class Util { public static uint ConvertBytesToUInt(byte[] Input) { uint output; output = Input.Length > 0 ? ((uint)Input[0]) : 0; output += Input.Length > 1 ? ((uint)Input[1] << 8) : 0; output += Input.Length > 2 ? ((uint)Input[2] << 16) : 0; output += Input.Length > 3 ? ((uint)Input[3] << 24) : 0; return output; } }