Replies: 1 comment
-
Done. https://doc.metalama.net/conceptual/aspects/advising/attributes |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I might recommend this be placed in a new page under "Advising code" in the conceptual documentation and organized like the "Adding initializers" page (assuming there's a non-programmatic way to do it).
While trying to work my way through doing it myself, I correctly guessed that I could get an
IConstructor
from anINamedType
, but given that this requires a cast from theTypeFactory
to anINamedType
, this might not be the most obvious to someone new to the framework. For example, there's a lot here that takes some familiarity with Metalama to piece together what it's talking about:And then one need to know how to actually attach that to the target, needing to know that they use the
AddAttribute()
method in the I*Builder while introducing the type.'
I might recommend including a link to the aspect ordering page as a reminder that if they attach another aspect, they'll need to factor in ordering somewhere.
This would at least simplify understanding of some of the more advanced Metalama functionality.
Beta Was this translation helpful? Give feedback.
All reactions