W winthux Feb 24, 2004 #1 how should look string format that the String.Format() return result the same like function sprintf("%08x%08x", a,b)??
how should look string format that the String.Format() return result the same like function sprintf("%08x%08x", a,b)??
J Jon Skeet [C# MVP] Feb 24, 2004 #2 winthux said: how should look string format that the String.Format() return result the same like function sprintf("%08x%08x", a,b)?? Click to expand... I can't remember much about C style format strings, but I believe what you're after is: String x = String.Format("{0:x8}{1:x8}", a, b);
winthux said: how should look string format that the String.Format() return result the same like function sprintf("%08x%08x", a,b)?? Click to expand... I can't remember much about C style format strings, but I believe what you're after is: String x = String.Format("{0:x8}{1:x8}", a, b);