VCCodeFunction Paramters how to know the parameter type RRS feed

  • Question

  • Hello everybody,

    I am trying to make a little add-in to modify some function headers but I need to know the functions parameters names and types.

    I am using VCCodeFunction like this:

               VCFileCodeModel fcm = fileSourceDocument.FileCodeModel as VCFileCodeModel;

                                        for (int l = 1; l <= fcm.Functions.Count; l++)

                                           VCCodeFunction fcn = fcm.Functions.Item(l) as VCCodeFunction;

                                           fcn.Parameters.Item(1).FullName; // gives me the full name of the paramter
                                           fcn.Parameters.Item(1).Name;  //give me the name of the parameter


    I do not see how I can get the parameter type like "int" , "char*" etc...

    Thank you.



    Tuesday, July 6, 2010 10:09 AM


All replies