NewGuid vs System.Guid.NewGuid().ToString(“D”);
I realize that this question already has an accepted answer, but I thought it would be useful to share some information about formatting guids. The ToString() (no parameters) method formats a guid using this format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx The ToString(string format) method formats a guid in one of several ways: “N” – xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (32 digits) “D” – … Read more