@@ -6,8 +6,8 @@ namespace UMS.Analysis.Structures.Objects;
6
6
public readonly struct ManagedClassInstance
7
7
{
8
8
private readonly object ? _parent ;
9
- private readonly ulong _objectAddress ;
10
-
9
+
10
+ public readonly ulong ObjectAddress ;
11
11
public readonly BasicTypeInfoCache TypeInfo ;
12
12
public readonly IFieldValue [ ] Fields ;
13
13
public readonly TypeFlags TypeDescriptionFlags ;
@@ -22,7 +22,7 @@ public ManagedClassInstance(SnapshotFile file, int typeDescriptionIndex, TypeFla
22
22
throw new ( "This constructor can only be used for value types" ) ;
23
23
24
24
_parent = parent ;
25
- _objectAddress = 0 ;
25
+ ObjectAddress = 0 ;
26
26
TypeInfo = file . GetTypeInfo ( typeDescriptionIndex ) ;
27
27
TypeDescriptionFlags = flags ;
28
28
IsInitialized = true ;
@@ -50,7 +50,7 @@ public ManagedClassInstance(SnapshotFile file, int typeDescriptionIndex, TypeFla
50
50
public ManagedClassInstance ( SnapshotFile file , RawManagedObjectInfo info , ManagedClassInstance ? parent = null , int depth = 0 )
51
51
{
52
52
_parent = parent ;
53
- _objectAddress = info . SelfAddress ;
53
+ ObjectAddress = info . SelfAddress ;
54
54
TypeInfo = file . GetTypeInfo ( info . TypeDescriptionIndex ) ;
55
55
TypeDescriptionFlags = info . Flags ;
56
56
IsInitialized = true ;
@@ -124,7 +124,7 @@ private bool CheckIfRecursiveReference()
124
124
var parent = TypedParent ;
125
125
while ( parent . IsInitialized )
126
126
{
127
- if ( parent . _objectAddress == _objectAddress )
127
+ if ( parent . ObjectAddress == ObjectAddress )
128
128
return true ;
129
129
130
130
parent = parent . TypedParent ;
0 commit comments