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

How to get method parameter's signature?

$
0
0

Hi, I have to save  method parameter's signature to do sth.

I can parser the signature from IMetaDataImport::GetMethodProps and get method parameter's signature rightly, but it's dirty because I have to split parameters and save each parameter's beginning and ending. So I try another way below, but it's not work.

I use IMetaDataImport::GetParamForMethodIndex to do get all parameters' mdParamDef, then use IMetaDataImport::GetSigFromToken with mdParamDef to get signature.

IMetaDataImport::GetSigFromToken returns 0x80131124 for some mdParamDef, and what's the meaning?

I parser the signature return by IMetaDataImport::GetSigFromToken. The result of parameter's type all are ELEMENT_TYPE_U2. Obviously, it is not right. 

Can you tell me why? Thanks a lot! 



Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>