Created
April 24, 2017 07:57
-
-
Save Criteo-dotnet-blog/233df81ef1a886d13084bbfb0391c132 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private object GetFieldValue(ClrHeap heap, ulong address, string fieldName) | |
{ | |
var type = heap.GetObjectType(address); | |
ClrInstanceField field = type.GetFieldByName(fieldName); | |
if (field == null) | |
return null; | |
return field.GetValue(address); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment