• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 559
  • Last Modified:

GUID Data Type

Hi Folks

In VB.NET, Is a GUID a Reference or Value datatype? I'm guessing its a reference since it is based on a string.

Am I right???
0
Gatsby
Asked:
Gatsby
1 Solution
 
Stephen MandersonCommented:
Hi there,

msdn has it listed as a data type here
http://msdn.microsoft.com/en-us/library/aa302233.aspx

Regards
Steve
0
 
balochdudeCommented:
reference (i think)
0
 
JayeshKitukaleCommented:
Here is the Guid structure definition from .NET framework
public struct Guid : IFormattable, IComparable, IComparable<Guid>, IEquatable<Guid>
{
  ...
}
"struct" means a value type not a reference type. Every structure in .NET is value type.
0
 
GatsbyAuthor Commented:
Thansks!
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now