Thursday, April 21, 2011

Guid.ToString(String) Documentation WTF?

From msdn (here is the link)

Guid.ToString(String) valid input:
'N' - 32 digits:

'D' - 32 digits separated by hyphens:

'B' - 32 digits separated by hyphens, enclosed in braces:

'P' - 32 digits separated by hyphens, enclosed in parentheses:

'X' - Four hexadecimal values enclosed in braces, where the fourth value is a subset of eight hexadecimal values that is also enclosed in braces:

Supported .NET Framework: 4, 3.5, 3.0, 2.0, 1.1, 1.0
Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2

But on my Windows Vista SP2 & .Net 4 the following code gives nice exception (not valid input):

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication3
    class Program
        static void Main(string[] args)

No comments:

Post a Comment