Pages

Sunday, September 15, 2013

GUID Class in C#

GUID Represents a globally unique identifie. It Generates the global unique identifier like this:

6127e3af-804a-49e0-b198-463fa8a0e220 


Guid gg;
gg = Guid.NewGuid();      // Generate Globally unique identifier

if (gg == Guid.Empty)        // Check for empty
        {
        }

 else
        {
              string sss = gg.ToString( );
        }

No comments:

Post a Comment