Does C# provide any unique identifier function?


Does C# provide any function which will create and return unique identifier?
Thanks,
[101 byte] By [Rosemary] at [2008-3-7]
# 1

The System.Guid class in the framework provides a NewGuid() method that will generate a unique identifier for you:


System.Guid myUniqueIdentifier = System.Guid.NewGuid();

Best regards,
Johan Stenberg

JohanStenberg at 2007-9-9 > top of Msdn Tech,Visual C#,Visual C# Language...