Why is the 14th character in the GUID generated by Visual Studio sometimes lowercase

Sometimes, when I generate a GUID using visual studio, the 14th hexadecimal character is lowercase and the remaining hexadecimal digits are uppercase.

Causes a small problem when comparing string representations of two GUIDs. Now I always compare binary equivalents to be safe.

+4
source share
1 answer

Yes, this is a known mistake . But you should not do string comparisons; use Guid.Equals .

+12
source

All Articles