Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

How to get underlying attribute Type from an instance of a CustomAttributeData

$
0
0

I am a little surprised to see that CustomAttributeData provides no way to determine the actual Type of the actual attribute that it represents.

I can get at the various members, paramaters, etc but cannot seem to get at the Type.

I need to be able to recognize which specific attribute I am dealing with, before I can attempt to look for or access specific members of the attribute.

For now I am using ToString() to see if it contains the name of the attribute class, but surely there is better way?

 

Cap'n

 


Viewing all articles
Browse latest Browse all 1710

Trending Articles