I am looking for a way to get all the local variables within a specific method.
i didn't find an API function in rf_method struct that do such operation.
i will happy if some one can show me how it is done.
reflection reports on static elements of your code (structs, types, fields, methods, constraints etc.). Method variables don't exist statically, they only 'come to life' when the method is active (executing). There is also no list of all variables of a method, since variables can be defined locally in actions (e.g. in a for loop). The execution point of a method, the scope in a method etc. are very hard to pin down, hence it is very difficult to provide a reliable and clear API for users. So at the moment reflection can not be used to find variables of a method. (for similar reasons actions of a method are also not reported).
In reply to hannes:
Thanks for you quick and detailed response.