byte-Array in uint wandeln

public uint ConvertBytesToUint(byte[] byaInput)
{
    return byaInput[0] | (byaInput[1] << 8) | (byaInput[2] << 16) | (byaInput[3] << 24);
}