Is Guid considered a value type or reference type?

SoftwareGeek picture SoftwareGeek · Feb 26, 2010 · Viewed 15.4k times · Source

Guids are created using the new keyword which makes me think it's a reference type.

Is this correct?

Guid uid = new Guid();

Are Guids stored on the heap?

Answer

Randolpho picture Randolpho · Feb 26, 2010

Guid is a Value Type.

See MSDN. Note that Guid is a struct. All structs are Value Types.