What was that format string again? You know, the one for the GUID where you only output the guid, but with no formatting?
using System;
public class GuidTest
{
public static void Main()
{
string[] guidFormats = {"N", "D", "B", "P"};
Guid g = new Guid();
Array.ForEach(guidFormats, delegate(string t)
{
Console.WriteLine("{0}:{1}", t, g.ToString(t));
});
Console.ReadLine();
}
}
N:00000000000000000000000000000000
D:00000000-0000-0000-0000-000000000000
B:{00000000-0000-0000-0000-000000000000}
P:(00000000-0000-0000-0000-000000000000)
That's right. Now I remember.
Edit: 1/8/2010 - I've forgotten again... Darn.
I should create a mnemonic device to remember this
N = Nothing
D = Dashes
B = Brackets
P = Parenthesis
http://msdn.microsoft.com/en-us/system.guid.tostring.aspx