PC Review


Reply
Thread Tools Rate Thread

Asking about GUID

 
 
=?Utf-8?B?cmg=?=
Guest
Posts: n/a
 
      19th Feb 2004
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



 
Reply With Quote
 
 
 
 
Klaus H. Probst
Guest
Posts: n/a
 
      20th Feb 2004
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" <(E-Mail Removed)> wrote in message
news:5FF7C69F-BAAD-4567-9355-(E-Mail Removed)...
> 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
> second one. How do I do?
>
> Regards,
>
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Managed GUID to unsafe win32 GUID struct Pål A. Microsoft C# .NET 1 27th Feb 2008 08:52 AM
Why does Guid.GetHashcode() returns 0 when instantiated with Guid.Empty ? csharper Microsoft C# .NET 2 30th Nov 2005 05:14 PM
DC guid on leaf domain does not match root DC's actual guid Mike Drechsler - SPAM PROTECTED EMAIL Microsoft Windows 2000 Active Directory 0 17th Mar 2005 08:59 PM
GetType(Object).GUID <- What does the GUID represent? Lucas Tam Microsoft VB .NET 2 22nd Nov 2004 01:37 AM
New GUID(guidstring) fails to create GUID - Help Please!!! Chris Ericoli Microsoft Dot NET 1 29th Oct 2003 06:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:12 AM.