How to create a new GUID?
-
How do I create a new GUID using C#? I tried this but it shows up as 00000000-0000-0000-0000-000000000000.
Guid guid = new Guid();
Console.WriteLine( guid ); -
How do I create a new GUID using C#? I tried this but it shows up as 00000000-0000-0000-0000-000000000000.
Guid guid = new Guid();
Console.WriteLine( guid );Try the static method
Guid.NewGuid()
You can find more information on MSDN[^] --Colin Mackay--"In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown) Enumerators in .NET: See how to customise foreach loops with C#
-
Try the static method
Guid.NewGuid()
You can find more information on MSDN[^] --Colin Mackay--"In the confrontation between the stream and the rock, the stream always wins - not through strength but perseverance." (H. Jackson Brown) Enumerators in .NET: See how to customise foreach loops with C#
:doh: Thanks!