Okay so lets say I input this in to a rich textbox:
private void noRecoilOn()
{
this.Jtag.WriteUInt32(2200480928u, 1024u);
}
private void noRecoilOff()
{
this.Jtag.WriteUInt32(2200480928u, 0u);
}
I want to be able to parse out the decimals and convert it to Hexadecimal like so:
private void noRecoilOn()
{
this.Jtag.WriteUInt32(0x8328ACA0, 0x400);
}
private void noRecoilOff()
{
this.Jtag.WriteUInt32(0x8328ACA0, 0x0);
}
This is just a quick example but the real things I will be converting will be whole blocks of code with many different decimals that need to be converted, not just "2200480928u".
How would I go about doing this. I have no idea
I would suggest looking at How to: Convert Between Hexadecimal Strings and Numeric Types (C# Programming Guide)
In addition the
ToString()
has a format to write to Hex andUInt32.Parse
can be provided an IFormat