Can I generate a GUID inside C#?

  • Thread starter Thread starter babylon
  • Start date Start date
B

babylon

I know how know to generate it using guidgen.exe

any builtin routine in .net framework to do that?
thx
 
babylon said:
I know how know to generate it using guidgen.exe

any builtin routine in .net framework to do that?
thx


Guid myGuid = Guid.NewGuid();

/Magnus Lidbom
 
I should be something like:

Guid g = System.Guid.NewGuid();
Console.WriteLine(g.ToString());
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top