what does format {0:x} mean?

c#

Solution

It means format the first argument (index 0) as hexadecimal: http://msdn.microsoft.com/en-us/library/s8s7t687(v=vs.80).aspx

Problem

I came across this C# literal and was wondering what does it mean? Especially, in the following case: ``` string.Format("{0:x}", byteArray[i]); ``` Thanks

Original source