Windbg - dumping System.Guid
When I use !do in windbg for System.Guid object I got list of fields for that GUID object. How can I see what is value of thi开发者_如何学Pythons GUID (string representation)?
Use dt nt!_GUID <@ofobject> +4
Guid is stored as ints and bytes. String representation is created when you call ToString(). You can not call methods if you analyzing a 'dead' dump file. So your best bet is to just copy the values and use this constructor and ToString() in a new console app or in a unit test:
public Guid(
uint a,
ushort b,
ushort c,
byte d,
byte e,
byte f,
byte g,
byte h,
byte i,
byte j,
byte k
)
Not the answer you were looking for probably. Hope you only need to do it once.
精彩评论