Re: [ADVANCED-DOTNET] Retrieving method parameters with Unmanaged Metadata API

2004-07-08 Thread Fabian Schmied
Just realized that I've posted not quite correct code: of course, in the second import.EnumParams call the method token is 'mdToken' (just as in the first one), not 'info.myMDToken'. Sorry, it was just a typo in the post that does not relate to the original problem. Relating to the original problem

Re: [ADVANCED-DOTNET] Retrieving method parameters with Unmanaged Metadata API

2004-07-08 Thread Dmitry Shaporenkov
m. - Original Message - From: "Dmitry Shaporenkov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 08, 2004 9:54 PM Subject: [ADVANCED-DOTNET] Retrieving method parameters with Unmanaged Metadata API ... IMetaDataImport import; uint mdToken; uint paramEn

[ADVANCED-DOTNET] Retrieving method parameters with Unmanaged Metadata API

2004-07-08 Thread Dmitry Shaporenkov
Hi all, yet another question about metadata: I would like to extract methods and their parameters from an assembly using Unmanaged Metadata API. The question is how can I correctly retrieve the number of parameters, their types and names? I've tried to use IMetaDataImport.EnumParams method but rece