C# how to create a Guid value?

5YrsLaterDBA picture 5YrsLaterDBA · Feb 26, 2010 · Viewed 406.2k times · Source

One field of our struct is Guid type. How to generate a valid value for it?

Answer

David picture David · Feb 26, 2010
Guid id = Guid.NewGuid();