Closed jonyadamit closed 11 months ago
Hello @jonyadamit, thank you for submitting this issue. We will try to get back to you as soon as possible. Note to the PostSharp team, this ticket is being tracked in our dashboard under ID TP-34245.
How is the attribute initialized? If the values as passed as constructor arguments (even if they are then assigned to a property), you won't see them as named arguments.
You might want to try TryConstruct, which will require you to mark your type ActivityFieldAttribute
as [RunTimeOrCompileTime]
.
I see. Thank you very much!
I am using version 2024.0.3-preview. I need to retrieve simple attributes decorating parameters of a method. My code looks somewhat like this:
The problem is that
field.NamedArguments
is always empty andTryGetValue
always returns false. Is there a different approach for getting the information from those attributes?