I just need to know how I would write a piece of code in c#
So I’m making a tool for public release and I have found the updates off sets for all nesseary things

So for the unlock camos I have the offset and changed values to c8 but how would I write the piece of code?
I know I’m Xbox it would be uint32 and convert uint32 but how is it done for PC please
And the same with the level xp so if the offset is 145ce52e I would need to put 0x in front right? Then when coding it would look something like:
Iw7mp.exe.writeuint32(0x145ce52e, byte value, 55);

Is that along the right lines or am I way off!
Any help pointing me in the right direction will be greatly helpful!

Any one willing to help I will give fill credit to in the tool!