Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get hex values between a range in c#

Tags:

c#

hex

Please assist. How do i get the list of hex addresses between a specific range.

0x000000 > 0x0001B3

Need to do something like

for(int i=0;i< 10;i++) { //do stuff here }

Thanks in advance

like image 526
Servero Danton Avatar asked Mar 05 '26 08:03

Servero Danton


1 Answers

for (int i = 0x0; i <= 0x1b3; i++) {
    // Do stuff with i

    // Converts the integer to hex, if that's what you wanted.
    string str = i.ToString("X");
}
like image 194
cdhowie Avatar answered Mar 07 '26 20:03

cdhowie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!