Can not get MapperIgnoreTargetAttribute attributes via reflection #1266
-
Whenever I try to get the attributes from the method from the Mapper class, I get only one GeneratedCodeAttribute from which I don't think I can get what I want, is it at all possible to get MapperIgnoreTargetAttribute through reflection and is this expected and correct what is happening to me?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
By default the Mapperly attributes are conditional and are not present at runtime since they are not needed at runtime. However, if you really need them you can preserve them, see the docs. |
Beta Was this translation helpful? Give feedback.
By default the Mapperly attributes are conditional and are not present at runtime since they are not needed at runtime. However, if you really need them you can preserve them, see the docs.
Just for my understanding: Can you elaborate on your use-case and why you need access to these attributes at runtime?