May 2010
Intermediate to advanced
1272 pages
61h 18m
English
How many times do you need to represent something with a unique identifier? Probably your answer is “very often.” Examples are items with the same name but with different characteristics. The .NET Framework enables creating unique identifiers via the System.Guid structure (therefore a value type). Such type enables generating a unique, 128-bit string, identifier. To generate a unique identifier, invoke the Guid.NewGuid method that works as follows:

If you run the preceding code, you notice that each time you invoke the NewGuid method a new GUID is generated, although you assign such value to the same variable. This makes sense, ...
Read now
Unlock full access