Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what does format {0:x} mean? [closed]

Tags:

c#

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

like image 856
user1202434 Avatar asked Aug 21 '12 15:08

user1202434


1 Answers

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

like image 67
Chris Shain Avatar answered Oct 23 '22 09:10

Chris Shain