Alex Rivera | Logout

How to use Guids in C#?

Asked 2009-05-24T15:43:29.203
89

This Code:

Something = new Guid() 

is returning:

00000000-0000-0000-0000-000000000000

all the time and I can't tell why? So, why?

Edit
Report

1 Answer

149

You should use Guid.NewGuid()

answered 2009-05-24T15:46:33.477

Your Answer