@@ -6,8 +6,8 @@ namespace UMS.Analysis.Structures.Objects;
66public readonly struct ManagedClassInstance
77{
88 private readonly object ? _parent ;
9- private readonly ulong _objectAddress ;
10-
9+
10+ public readonly ulong ObjectAddress ;
1111 public readonly BasicTypeInfoCache TypeInfo ;
1212 public readonly IFieldValue [ ] Fields ;
1313 public readonly TypeFlags TypeDescriptionFlags ;
@@ -22,7 +22,7 @@ public ManagedClassInstance(SnapshotFile file, int typeDescriptionIndex, TypeFla
2222 throw new ( "This constructor can only be used for value types" ) ;
2323
2424 _parent = parent ;
25- _objectAddress = 0 ;
25+ ObjectAddress = 0 ;
2626 TypeInfo = file . GetTypeInfo ( typeDescriptionIndex ) ;
2727 TypeDescriptionFlags = flags ;
2828 IsInitialized = true ;
@@ -50,7 +50,7 @@ public ManagedClassInstance(SnapshotFile file, int typeDescriptionIndex, TypeFla
5050 public ManagedClassInstance ( SnapshotFile file , RawManagedObjectInfo info , ManagedClassInstance ? parent = null , int depth = 0 )
5151 {
5252 _parent = parent ;
53- _objectAddress = info . SelfAddress ;
53+ ObjectAddress = info . SelfAddress ;
5454 TypeInfo = file . GetTypeInfo ( info . TypeDescriptionIndex ) ;
5555 TypeDescriptionFlags = info . Flags ;
5656 IsInitialized = true ;
@@ -124,7 +124,7 @@ private bool CheckIfRecursiveReference()
124124 var parent = TypedParent ;
125125 while ( parent . IsInitialized )
126126 {
127- if ( parent . _objectAddress == _objectAddress )
127+ if ( parent . ObjectAddress == ObjectAddress )
128128 return true ;
129129
130130 parent = parent . TypedParent ;
0 commit comments