Задайте вопросЗадайте вопрос
 

ОтвеченоGet type of function parameter

  • 26 мая 2009 г. 8:48shootingsyh Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     

    I have an assembly A, which contains some functions:
    void log(Uri u);
    void log(int i);
    void log(CustomType t);

    The CustomType is defined in another assembly B.

    I open the assembly A use PEModuleUnit.Open, then I want to get the parameter types for each log function and add them into a array.

    But I found that the ParameterSymbol.Type doesn't give the expected type.

    I expect the parameter of type uri has the type object32->class64, and the class64 should have symbol of name "System.Uri". But the result is the class64 is a function ClrCall.Function(i32)->(object32->class64) type!!

    Can anyone tell me what happens to the type "Uri"? Thanks

    The same thing happens to the CustomType, just the object32->class64 type, and the class64 type is a ClrCall.Function()->(void)

Ответы

Все ответы