OscarRyz OscarRyz - 1 year ago 195
C# Question

Guid.NewGuid() vs. new Guid()

What's the difference between

new Guid()

Which one is preferred?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download