I'm kinda new to C# coding and i have dealed lately with a problem and i want to ask for your help. I have this piece of code from the link below.
My problem is at the finish line:
uint num = ((string_0[0] | (string_0[1] << 8)) |
(string_0[2] << 0x10)) | (string_0[3] << 0x18);
Where i got this error:
Cannot implicitly convert type 'int' to 'uint'. An explicit conversion exists (are you missing a cast?)
From what i know and read i see that the problem came from a value asigned for a int with is too big for the int values. But from my little experience i do not know from what variable the value is not in the right format. A more advised expert can help me please to fix the code?