You can convert a number to hex like this: 0x8080.ToString("x6")
The 6
is the number of decimal places.
See the documentation for more detail.
More Related Contents:
- Most common C# bitwise operations on enums
- Is shifting bits faster than multiplying and dividing in Java? .NET? [closed]
- Checking if a bit is set or not
- C# int to byte[]
- How to truncate milliseconds off of a .NET DateTime
- When is it better to use String.Format vs string concatenation?
- Why does .NET use int instead of uint in certain classes?
- Stack capacity in C#
- Avoiding first chance exception messages when the exception is safely handled
- Managing multiple selections with MVVM
- How to find overlapping controls that I added to form?
- Convert int to a bit array in .NET
- Regular Expression for password validation
- Correlation of two arrays in C#
- Error consuming webservice, content type “application/xop+xml” does not match expected type “text/xml”
- Cannot deserialize JSON array into type – Json.NET
- Compare string similarity
- How do I find the current executable filename? [duplicate]
- Can you link to a good example of using BackgroundWorker without placing it on a form as a component?
- Why can’t I assign a List to a List?
- Getting current directory in .NET web application
- Control.AddRange(…) is slow
- LINQ: Add RowNumber Column
- big issue in converting string to datetime using linq-to-entities
- How to use Resources.resx to link images
- Authentication Service using WCF
- Should the folders in a solution match the namespace?
- IsAssignableFrom() returns false when it should return true
- How to make correct clone of the List? [duplicate]
- How do I convert a decimal to an int in C#?