What's the difference between Guid.NewGuid() and new Guid()?
Guid.NewGuid()
new Guid()
Which one is preferred?
new Guid() makes an "empty" all-0 guid (00000000-0000-0000-0000-000000000000 is not very useful).
Guid.NewGuid() makes an actual guid with a unique value, what you probably want.
548k questions
547k answers
4 comments
86.3k users