Asking about GUID

G

Guest

Hi
I have some problem with GUID
when I debug this lin
myguid=Guid.NewGuid(); I found some value in watch.
System.ValueType =
_a = -78434454
_b ,_c,_d ... to _k with specific value

After that the next line System.Writeline(myguid), the value is differenct with watch value
d13fda1f-4846-46ba-ae45-b47545107f1

I want to know the different between that 2 values
The reason I ask this question is when I use soap serialization, I got the value of the first one. I want to get the value of
second one. How do I do?

Regards
 
K

Klaus H. Probst

If you want a standard registry-type GUID you need to do something like
this:

string guid = Guid.NewGuid().ToString();

What you're seeing in the watch window is just the internal representation
of the Guid class.


--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/

rh said:
Hi,
I have some problem with GUID.
when I debug this line
myguid=Guid.NewGuid(); I found some value in watch.
System.ValueType =
_a = -784344545
_b ,_c,_d ... to _k with specific value.

After that the next line System.Writeline(myguid), the value is differenct with watch value.
d13fda1f-4846-46ba-ae45-b47545107f12

I want to know the different between that 2 values.
The reason I ask this question is when I use soap serialization, I got the
value of the first one. I want to get the value of
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top