I am trying to workout a way to programatically create a key for Memcached, based on the method name and parameters. So if I have a method,
string GetName(int param1, int param2);
it would return:
string key = "GetName(1,2)";
I know you can get the MethodBase using reflection, but how do I get the parameters values in the string, not the parameter types?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…