How can I get a PropertyInfo by name using GetType().GetProperty("MypropName") of a type which is obfuscated.
You need to know what the obfuscated name of the property ended up. That is very fragile as it may change from build to build. If you can tell which property is by other means (its type, custom attributes) it would be better.
The obfuscated name will mostly likely be a few non-printable characters or probably just A. Dotfuscator renames something like 80% of the code to A.
An alternative would be to exclude the property from Obfuscation using the ObfuscationAttribute Class
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With