Converts a string of length 4 to a 32-bit unsigned integer.
using System.IO; using System.Reflection; internal class Util { public static uint ConvertStringToUInt(string Input) { uint output; output = ((uint)Input[0]); output += ((uint)Input[1] << 8); output += ((uint)Input[2] << 16); output += ((uint)Input[3] << 24); return output; } }