O'Reilly logo

C# 5.0 Unleashed by Bart De Smet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

GUID Values

During the COM era, identification and mapping of interfaces was driven by unique identification numbers, known as globally unique identifiers (GUIDs). Although this is just one of the many uses of GUIDs, COM definitely is the one that jumps immediately to mind.

For COM interoperability as well as other uses, the .NET Framework has a struct to represent such identifiers: System.Guid. A GUID is basically nothing more than a “very random” 128-bit integer that has a global uniqueness property. Global in this context means that there’s a very low likelihood of two generated GUIDs (no matter where and when that happens) being the same. For that reason, it’s safe to generate a GUID for some use (for example, to identify a COM interface) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required