What is the use of Int32.ToString ("some string format specifier")? The way is
with using more than 1 specifiers? In particular, I want to format an intent in hexadecimal, but forcing the string to be 8-bit taller, for example, I parse number 1234 in decimal in the "000004D2" string by adding it to the empty space of 0. Want to do
The way I wanted to do it was with the combination of "X" and "00000000" specifiers, but I do not have to find any examples of combinations together, do I find myself Need to create your own format provider?
I need to do this because I am writing a viewer that displays an array of bytes that supports different packages and formats. For example, display the array as hexadecimal array of 4-bytes integer, or 2-bytes integer in signed display. Much like the memory viewer in VS
For that specific example, you use "X8" only My format specifier does not know me about a more common case - but if you have any other specific requirements, then perhaps it is probably the person to ask them separately.
Comments
Post a Comment