A Unique ID

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hector Martinez

    #1

    A Unique ID



    We know, C#, generate a Unique ID, for each visual element incorporate to its form. I need to create a unique ID to name my files, how can I do that, without have to create my own algorithm

    I hope somebody can help me, thanks in advantage.
  • Dmitriy Lapshin [C# / .NET MVP]

    #2
    Re: A Unique ID

    Hi Hector,

    What about GUIDs?

    --
    Dmitriy Lapshin [C# / .NET MVP]
    X-Unity Test Studio

    Bring the power of unit testing to VS .NET IDE

    "Hector Martinez" <anonymous@disc ussions.microso ft.com> wrote in message
    news:5C21D6E0-F2A1-421B-BD30-0BD0FF40C7C2@mi crosoft.com...[color=blue]
    >
    >
    >
    > We know, C#, generate a Unique ID, for each visual element[/color]
    incorporate to its form. I need to create a unique ID to name my files, how
    can I do that, without have to create my own algorithm.[color=blue]
    >
    > I hope somebody can help me, thanks in advantage.[/color]

    Comment

    • Frank Oquendo

      #3
      Re: A Unique ID

      Hector Martinez wrote:[color=blue]
      > We know, C#, generate a Unique ID, for each visual element
      > incorporate to its form. I need to create a unique ID to name my
      > files, how can I do that, without have to create my own algorithm.
      >
      > I hope somebody can help me, thanks in advantage.[/color]

      System.Guid.New Guid.ToString()

      --
      There are 10 kinds of people. Those who understand binary and those who
      don't.


      (Pull the pin to reply)


      Comment

      Working...