I am trying to read the value of a property of a ClrObject
in a dmp file using ClrMD. I can read the values of any field of the object using the function GetField<T>(string fieldName)
. Unfortunately, this is not possible for the properties.
I have considered whether I can get the value of the property by executing the get method of the property, in my case the get_Int1
method. Is it possible in clrmd to execute a method / function on a ClrObject?
I've already read in this post, that it is not that easy to figure out the property value. Finding a type's instance data in .net heap
However, I wonder how the Visual Studio gets the value of the property. I can load the minidump file in Visual Studio and start it with "Debug with Managed Only"
.
Then I see the locals variables including the property for the minidump file! So Visual Studio can somehow resolve that.
Does anyone know a solution to get the value of a property of a ClrObject?