You have painted yourself into a corner.
There is no way to get a field (or Field
) using reflection if you don't know the field's obfuscated name AND you don't want to (or can't) cycle through all of the fields to identify the correct one.
I have a couple of suggestions:
Alter the obfuscation rules; e.g. don't obfuscate this class, or the field names for this class, or this specific field name.
Add a method for accessing this field so that you don't need to use reflection.
You could also figure out what the obfuscated name of the field is going to be and hard-wire it into your reflective code, but this is a bad idea. Small changes to your code are liable to make the obfuscated field name change. Then your code breaks.