Как реализовать функцию для получения всех аргументов для вызовов метода в проекте с помощью C#? ⇐ C#
-
Anonymous
Как реализовать функцию для получения всех аргументов для вызовов метода в проекте с помощью C#?
Implement a function that retrieves all the arguments for calls to MethodA(string a) in a project. For example, if there are two calls to MethodA("1") and MethodA("2"), the method should return ["1", "2"].
MethodA("1"); MethodA("2'); GetAllMethodArguments("MethodA"); //return ["1","2"] I tried using reflexes, but there seems to be no way to do that.
Источник: https://stackoverflow.com/questions/780 ... ethod-in-a
Implement a function that retrieves all the arguments for calls to MethodA(string a) in a project. For example, if there are two calls to MethodA("1") and MethodA("2"), the method should return ["1", "2"].
MethodA("1"); MethodA("2'); GetAllMethodArguments("MethodA"); //return ["1","2"] I tried using reflexes, but there seems to be no way to do that.
Источник: https://stackoverflow.com/questions/780 ... ethod-in-a
Мобильная версия