The arguments of the attribute constructor and property values ββare baked into compiled code. They cannot be determined at runtime.
Of course, if you have an attribute that is ready to play the ball, you can give it (say) the type and name of the property and ask it to get that property value at run time. (This is what NUnit does for [TestCaseSource] , for example.) But you cannot do this with an attribute that does not know this.
source share