Skip to content

Is there a way to get the namespace of the target method? #35

Answered by prochan2
craigbehnke asked this question in Q&A
Discussion options

You must be logged in to vote

You can compose the fully qualified name as $"{meta.Target.Method.DeclaringType.FullName}.{meta.Target.Method.Name}".

Alternatively, you can use meta.Target.Method.ToDisplayString(). See https://doc.metalama.net/api/metalama_framework_code_idisplayable for details about optional parameters of this method.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@craigbehnke
Comment options

Answer selected by craigbehnke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants