Does C# provide any unique identifier function?


Does C# provide any function which will create and return unique identifier

Thanks,


Answer this question

Does C# provide any unique identifier function?

  • Patrick in Canada

    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



  • Does C# provide any unique identifier function?